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;
#define ll long long
void solve(){
int n;cin >> n;
vector<pair<ll,ll>> a(n);
for(int i =0;i<n;i++){
cin >> a[i].first >> a[i].second;
}
ll xsum = 0,ysum = 0;
for(int i =0;i<n;i++){
xsum += a[i].first;
ysum += a[i].second;
}
xsum = xsum/n;
ysum = ysum/n;
cout << xsum << " " << ysum << "\n";
}
signed main(){
iostream::sync_with_stdio(false);cin.tie(NULL);
int TTT = 1;
//cin >> TTT;
while(TTT--){
solve();
}
}
# | 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... |