Submission #949180

#TimeUsernameProblemLanguageResultExecution timeMemory
949180vjudge1Best Place (NOI17_bestplace)C++17
51 / 100
60 ms1236 KiB
#include <bits/stdc++.h> using namespace std; #define ios ios::sync_with_stdio(false); cin.tie(NULL); #define pb push_back #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define fr first #define sc second const int INF=1e9,N=2e5+5; void solve(){ int n;cin>>n; vector< pair< int,int> > a(n); for(int i=0;i<n;i++){ cin>>a[i].fr>>a[i].sc; } sort(all(a)); cout<<a[n/2].fr<<' '<<a[n/2].sc<<endl; } int main(){ solve(); }
#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...