Submission #798373

#TimeUsernameProblemLanguageResultExecution timeMemory
798373HunterXDBest Place (NOI17_bestplace)C++17
100 / 100
33 ms3144 KiB
#include <bits/stdc++.h> using namespace std; typedef int ll; typedef vector<ll> vl; typedef vector<vl> vvl; #define all(x) x.begin(), x.end() const char nd = '\n'; signed main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); // ll n; cin >> n; vl a(n), b(n); for (ll i = 0; i < n; i++) { cin >> a[i] >> b[i]; } sort(all(a)); sort(all(b)); cout << a[n / 2] << " " << b[n / 2] << nd; }
#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...