Submission #846890

#TimeUsernameProblemLanguageResultExecution timeMemory
846890annabeth9680Best Place (NOI17_bestplace)C++17
100 / 100
69 ms3152 KiB
#include <bits/stdc++.h> using namespace std; int main() { 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...