Submission #965954

#TimeUsernameProblemLanguageResultExecution timeMemory
965954momo50Best Place (NOI17_bestplace)C++14
0 / 100
63 ms3864 KiB
#include<bits/stdc++.h> #define ll long long using namespace std; int main() { int n; cin>>n; vector<pair<long,long>> arr; for(int i=0;i<n;i++) { int a,b; cin>>a>>b; arr.push_back({a,b}); } sort(arr.begin(),arr.end()); ll mid=(arr[0].first+arr[n-1].first)/2; cout<<mid<<" 0"; 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...