제출 #966031

#제출 시각아이디문제언어결과실행 시간메모리
966031JungPSBest Place (NOI17_bestplace)C++14
3 / 100
17 ms1116 KiB
#include<iostream> #include<cmath> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int n; cin >> n; int x[n],y[n]; for(int i=0;i<n;++i) cin >> x[i] >> y[i]; if(n==2){ cout << x[0] << " " << y[0]; return 0; } else{ int sum=0; for(int i=0;i<n;++i) sum+=x[i]; cout << round(sum/n) << " " << 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...