Submission #511137

#TimeUsernameProblemLanguageResultExecution timeMemory
511137chosen1Best Place (NOI17_bestplace)C++14
100 / 100
99 ms3996 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll N; cin>>N; vector <ll>x; vector <ll>y; for(ll i=0;i<N;i++){ ll a,b; cin>>a>>b; x.push_back(a); y.push_back(b); } sort(x.begin(), x.end()); sort(y.begin(), y.end()); ll c=(N-1)/2; cout<<x[c]<<" "<<y[c]<<"\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...