Submission #922310

#TimeUsernameProblemLanguageResultExecution timeMemory
922310pccBest Place (NOI17_bestplace)C++14
100 / 100
31 ms3932 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define pll pair<ll,ll> #define pii pair<int,int> #define fs first #define sc second #define tlll tuple<ll,ll,ll> int main(){ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); int n; cin>>n; ll x[n],y[n]; for(int i = 0;i<n;i++)cin>>x[i]>>y[i]; sort(x,x+n); sort(y,y+n); 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...