Submission #1108408

#TimeUsernameProblemLanguageResultExecution timeMemory
1108408vjudge1Best Place (NOI17_bestplace)C++17
3 / 100
25 ms1244 KiB
#include<bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n,sum=0,sum1=0,say=0,say1=0; cin>>n; vector<int>ev(n); vector<int>tedbir(n); for(int i=0;i<n;++i){ cin>>ev[i]; say++; sum+=ev[i]; cin>>tedbir[i]; sum1+=tedbir[i]; say1++; } sort(ev.begin(),ev.end()); sort(tedbir.begin(),tedbir.end()); int mx,my; mx=sum/say; my=sum1/say1; cout<<mx<<' '<<my; }
#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...