Submission #949185

#TimeUsernameProblemLanguageResultExecution timeMemory
949185vjudge1Best Place (NOI17_bestplace)C++17
100 / 100
77 ms2136 KiB
#include <bits/stdc++.h> #define int long long #define ff first #define ss second #define pb push_back #define all(x) x.begin(),x.end() using namespace std; signed main(){ ios_base::sync_with_stdio(); cin.tie(0);cout.tie(0); int n; cin>>n; vector <int> x(n),y(n); for(int i=0;i<n;i++){ cin>>x[i]>>y[i]; } sort(all(x));sort(all(y)); 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...