Submission #859828

#TimeUsernameProblemLanguageResultExecution timeMemory
859828annabeth9680Best Place (NOI17_bestplace)C++17
100 / 100
34 ms3288 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int N; cin >> N; vector<int> X(N),Y(N); for(int i = 0;i<N;++i) cin >> X[i] >> Y[i]; sort(X.begin(),X.end()); sort(Y.begin(),Y.end()); cout << X[N/2] << " " << Y[N/2] << "\n"; return 0; }
#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...