Submission #934594

#TimeUsernameProblemLanguageResultExecution timeMemory
934594ishat_jhaBest Place (NOI17_bestplace)C++14
100 / 100
30 ms3952 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long int #define ff first #define ss second void solvr() { ll n; cin >> n; vector<ll> v(n); vector<ll> b(n); for(ll i = 0; i < n; i++) { cin >> v[i]; cin >> b[i]; } sort(v.begin(), v.end()); sort(b.begin(), b.end()); cout << v[n/2] << " " << b[n/2] << endl; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); long long int t = 1; //cin >> t; while(t--) { solvr(); } }
#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...