제출 #798524

#제출 시각아이디문제언어결과실행 시간메모리
798524XJP12Best Place (NOI17_bestplace)C++14
3 / 100
63 ms1356 KiB
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vi> vii; int main(){ int n; cin>>n; vector<pair<int,int>> v; int cont1=0; int cont2=0; for(int i=0; i<n; i++){ int a,b; cin>>a>>b; cont1+=a; cont2+=b; v.push_back({a,b}); } sort(v.begin(), v.end()); if(cont1>0)cont1=cont1/n; if(cont2>0)cont2=cont2/n; cout<<cont1<<" "<<cont2<<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...