Submission #531333

#TimeUsernameProblemLanguageResultExecution timeMemory
531333devariaotaBest Place (NOI17_bestplace)C++17
100 / 100
99 ms3012 KiB
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ // cin.tie(0) -> ios_base::sync_with_stdio(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'; }
#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...