Submission #1108261

#TimeUsernameProblemLanguageResultExecution timeMemory
1108261vjudge1Best Place (NOI17_bestplace)C++17
100 / 100
66 ms2040 KiB
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n; cin>>n; vector<ll> x(n); vector<ll> y(n); for(ll 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]; }
#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...