Submission #494869

#TimeUsernameProblemLanguageResultExecution timeMemory
494869ryuzakiBest Place (NOI17_bestplace)C++17
100 / 100
41 ms5348 KiB
#include <bits/stdc++.h> using namespace std; int med(vector<long int> v,int g) { return (v[(g) / 2]); } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n; cin >> n; vector<long 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<<med(x,n)<<" "<<med(y,n)<<'\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...