This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |