Submission #491415

# Submission time Handle Problem Language Result Execution time Memory
491415 2021-12-02T01:55:07 Z arnav_mehta Best Place (NOI17_bestplace) C++14
0 / 100
68 ms 268 KB
#include <bits/stdc++.h>
using namespace std;
long long n,x,y;

/*
thinking...
6
1 0
3 0
5 0
7 0
9 0
11 0
to find x,y
we can do it by MEAN!
*/
long long sx;
long long sy;
int main()
{
    cin>>n;
    for(long long i =0;i<n;++i){
        cin>>x>>y;
        sx+=x;
        sy+=y;
    }
    cout<<floor(sx/n)<<" "<<floor(sy/n);



}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Expected integer, but "5e+08" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 49 ms 268 KB Expected integer, but "9.36482e+07" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Expected integer, but "5.04502e+08" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 68 ms 204 KB Expected integer, but "4.99177e+08" found
2 Halted 0 ms 0 KB -