#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int x =0;
int y = 0;
for(int i = 0;i<n;i++){
int xi,yi;
cin >> xi>>yi;
x += xi;
y+=yi;
}
x = ceil(static_cast<float>(x/n));
y = ceil(static_cast<float>(y/n));
cout << x <<" , "<<y;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Expected integer, but "," found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Expected integer, but "," found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
36 ms |
1288 KB |
Expected integer, but "," found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Expected integer, but "," found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Expected integer, but "," found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
61 ms |
2140 KB |
Expected integer, but "," found |
2 |
Halted |
0 ms |
0 KB |
- |