This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main(){
long N;
cin >> N;
long long x_sum = 0;
long long y_sum = 0;
int X,Y;
for(long i = 0; i < N; i++){
cin >> X >> Y;
x_sum += X;
y_sum += Y;
}
cout << (x_sum/N + (x_sum % 2)) << " " << (y_sum/N + (y_sum % 2)) ;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |