제출 #554942

#제출 시각아이디문제언어결과실행 시간메모리
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...