Submission #742266

#TimeUsernameProblemLanguageResultExecution timeMemory
742266Sainen420Best Place (NOI17_bestplace)C++17
100 / 100
112 ms1560 KiB
#include <bits/stdc++.h> using namespace std; vector<int> x,y; int n; int a,b; int main() { cin >> n; for(int i=0;i<n;i++){ cin >> a >> b; x.push_back(a);y.push_back(b); } sort(x.begin(),x.end());sort(y.begin(),y.end()); int med = n/2; cout << x[med] << ' ' << y[med]; 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...