Submission #554942

#TimeUsernameProblemLanguageResultExecution timeMemory
554942vanshnawanderBest Place (NOI17_bestplace)C++17
3 / 100
24 ms3148 KiB
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); int n; cin>>n; int x,y; vector<int> vx; vector<int> vy; for (int i = 0; i < n; i++) { cin>>x>>y; vx.push_back(x); vy.push_back(y); } int h= (int)(accumulate(vx.begin(),vx.end(),0)/n); int k= (int)(accumulate(vy.begin(),vy.end(),0)/n); cout<<h<<" "<<k; return 0; }
#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...