Submission #798385

#TimeUsernameProblemLanguageResultExecution timeMemory
798385OspleiBest Place (NOI17_bestplace)C++17
100 / 100
34 ms1380 KiB
#include <bits/stdc++.h> using namespace std; int n, x, y; vector <int> vx, vy; void SOLVE(){ cin >> n; for (int i=0; i<n; i++){ cin >> x >> y; vx.push_back(x); vy.push_back(y); } sort(vx.begin(), vx.end()); sort(vy.begin(), vy.end()); cout << vx[vx.size()/2] << " " << vy[vy.size()/2] << "\n"; } int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int t = 1; //cin >> t; while(t--){ 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...