Submission #782683

#TimeUsernameProblemLanguageResultExecution timeMemory
782683PetrixBest Place (NOI17_bestplace)C++17
3 / 100
58 ms2176 KiB
#include <iostream> using namespace std; #define INF 1000000001 int main() { int n,i,max1=0,max2=0,min1=INF,min2=INF,a,b; cin>>n; for(i=0;i<n;i++){ cin>>a>>b; max1=max(max1,a); min1=min(min1,a); max2=max(max2,b); min2=min(min2,b); } cout<<(max1+min1)/2<<" "<<(max2+min2)/2; 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...