CSES - Putka Open 2015 – 5/6 - Results
Submission details
Task:Keskiarvo
Sender:
Submission time:2015-11-06 22:05:04 +0200
Language:C++
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED12
#2ACCEPTED17
#3ACCEPTED71
Test results
testverdicttimegroup
#1ACCEPTED0.06 s1details
#2ACCEPTED0.05 s1details
#3ACCEPTED0.05 s1details
#4ACCEPTED0.05 s1details
#5ACCEPTED0.05 s1details
#6ACCEPTED0.05 s2details
#7ACCEPTED0.07 s2details
#8ACCEPTED0.06 s2details
#9ACCEPTED0.05 s2details
#10ACCEPTED0.05 s2details
#11ACCEPTED0.05 s3details
#12ACCEPTED0.10 s3details
#13ACCEPTED0.10 s3details
#14ACCEPTED0.09 s3details
#15ACCEPTED0.10 s3details
#16ACCEPTED0.10 sdetails

Code

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <iomanip>
#include <cstdlib>
#include <queue>

#define uint unsigned int
#define INF 999999999
#define ll long long
#define M 1000000007
#define E 0.0000001
#define N 131072

using namespace std;

int main () {
    int n;
    cin>>n;
    double d = -1;
    for (int i = 0; i < n; i++) {
        double x;
        cin>>x;
        if (x > d) d = x;
    }
    cout<<d<<endl;

    return 0;
}

Test details

Test 1

Group: 1

Verdict: ACCEPTED

input
100
579911361 197658107 815676285 ...

correct output
980535539

user output
9.80536e+08

Test 2

Group: 1

Verdict: ACCEPTED

input
100
541962319 20721724 733683610 9...

correct output
996955791

user output
9.96956e+08

Test 3

Group: 1

Verdict: ACCEPTED

input
100
663677497 238679548 892011523 ...

correct output
978858928

user output
9.78859e+08

Test 4

Group: 1

Verdict: ACCEPTED

input
100
754557795 14395441 943833407 1...

correct output
998391974

user output
9.98392e+08

Test 5

Group: 1

Verdict: ACCEPTED

input
100
308690464 959776379 229201039 ...

correct output
995129158

user output
9.95129e+08

Test 6

Group: 2

Verdict: ACCEPTED

input
100
752236199 201329268 457625816 ...

correct output
997456488

user output
9.97456e+08

Test 7

Group: 2

Verdict: ACCEPTED

input
5000
314731332 844980432 427902587 ...

correct output
999901597

user output
9.99902e+08

Test 8

Group: 2

Verdict: ACCEPTED

input
5000
520967279 915660277 633907984 ...

correct output
999938928

user output
9.99939e+08

Test 9

Group: 2

Verdict: ACCEPTED

input
5000
989796225 185146611 419313583 ...

correct output
999908138

user output
9.99908e+08

Test 10

Group: 2

Verdict: ACCEPTED

input
5000
510588037 414748990 635670363 ...

correct output
999894105

user output
9.99894e+08

Test 11

Group: 3

Verdict: ACCEPTED

input
5000
312043025 563894859 350492609 ...

correct output
999944835

user output
9.99945e+08

Test 12

Group: 3

Verdict: ACCEPTED

input
100000
92541013 71039803 247766345 34...

correct output
999984487

user output
9.99984e+08

Test 13

Group: 3

Verdict: ACCEPTED

input
100000
423233870 652455282 139386372 ...

correct output
999994375

user output
9.99994e+08

Test 14

Group: 3

Verdict: ACCEPTED

input
100000
559308968 52061073 826304361 9...

correct output
999989944

user output
9.9999e+08

Test 15

Group: 3

Verdict: ACCEPTED

input
100000
425635648 182598452 773180708 ...

correct output
999996798

user output
9.99997e+08

Test 16

Group:

Verdict: ACCEPTED

input
100000
90120093 590318798 59894256 89...

correct output
999999674

user output
1e+09