Submission #1108857

#TimeUsernameProblemLanguageResultExecution timeMemory
1108857vjudge1Best Place (NOI17_bestplace)C++17
3 / 100
51 ms2332 KiB
#include <bits/stdc++.h> using namespace std; int main (){ int n,cem=0,cem1=0; cin>>n; for(int i=0;i<n;++i){ int x,y; cin>>x>>y; cem+=x; cem1+=y; } if(cem%n!=0){ cout<<cem/n+1<<" "; } else{ cout<<cem/n<<" "; } if(cem1%n!=0){ cout<<cem1/n+1<<" "; } else{ cout<<cem1/n<<" "; } }
#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...