#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
double x_sum = 0;
double y_sum = 0;
int X,Y;
for(int i = 0; i < N; i++){
cin >> X >> Y;
x_sum += X;
y_sum += Y;
}
cout << round(x_sum/N) << " " << round(y_sum/N);
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Expected integer, but "5e+08" found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
37 ms |
348 KB |
Expected integer, but "9.36482e+07" found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Expected integer, but "5.04502e+08" found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
53 ms |
404 KB |
Expected integer, but "4.99177e+08" found |
2 |
Halted |
0 ms |
0 KB |
- |