Submission #482293

#TimeUsernameProblemLanguageResultExecution timeMemory
482293ac2huBest Place (NOI17_bestplace)C++14
100 / 100
36 ms3064 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long int x[100001],y[100001]; void solve(){ int n;cin >> n; for(int i =0;i<n;i++) cin >> x[i] >> y[i]; sort(x,x + n); sort(y,y + n); cout << x[n/2] << " " << y[n/2] << "\n"; } signed main(){ iostream::sync_with_stdio(false);cin.tie(NULL); int TTT = 1; //cin >> TTT; while(TTT--){ 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...