Submission #676090

#TimeUsernameProblemLanguageResultExecution timeMemory
676090Akshat369Best Place (NOI17_bestplace)C++17
3 / 100
20 ms3152 KiB
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); vector<pair<int ,int > > v; int n; cin>>n; for (int i = 0; i < n; ++i) { int x , y; cin>>x>>y; v.push_back(make_pair(x,y)); } //cout<<v[1].first; int x=0; for (int i = 0; i < n; ++i) { x =x + v[i].first; } int y=0; for (int i = 0; i < n; ++i) { y = y + v[i].second; } cout<<x/n<<" "<<y/n<<endl; }
#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...