Submission #482292

#TimeUsernameProblemLanguageResultExecution timeMemory
482292ac2huBest Place (NOI17_bestplace)C++17
3 / 100
19 ms2508 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...