# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
491417 | 2021-12-02T01:56:36 Z | arnav_mehta | Best Place (NOI17_bestplace) | C++14 | 0 ms | 0 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,xy; int main() { cin>>n; for(long long i =0;i<n;++i){ cin>>x>>y; sx+=x; sy+=y; } cout<<(sx/n)<<" "<<(sy/n); }