Submission #697499

#TimeUsernameProblemLanguageResultExecution timeMemory
697499Sandarach151Best Place (NOI17_bestplace)C++17
100 / 100
46 ms3048 KiB
#include<bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; int arr1[n]; int arr2[n]; for(int i=0; i<n; i++){ cin >> arr1[i] >> arr2[i]; } sort(arr1, arr1+n); sort(arr2, arr2+n); int temp = n/2; cout << arr1[temp] << ' ' << arr2[temp]; 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...