Submission #472905

#TimeUsernameProblemLanguageResultExecution timeMemory
472905sabertooth_69Best Place (NOI17_bestplace)C++14
100 / 100
111 ms3764 KiB
#include <bits/stdc++.h> // remember to include bits! then you don't need to include everything else #define ll long long int using namespace std; int main() { ll n; cin>>n; int j=n/2; ll a[n]; ll b[n]; for(int i=0;i<n;i++) { cin>>a[i]>>b[i]; } sort(a,a+n); sort(b,b+n); for(int i=0;i<n;i++) { cout<<a[j]<<" "<<b[j]<<"\n"; break; } return 0; }
#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...