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<bits/stdc++.h>
using namespace std;
int inf = 1e9 + 10;
int main(){
int n, k;
cin >> n >> k;
int maxx = 0, maxy = 0, minx = inf, miny = inf;
for(int i=0; i<n; i++){
int x, y;
cin >> x >> y;
minx = min(x, minx);
miny = min(y, miny);
maxx = max(x, maxx);
maxy = max(y, maxy);
}
int l = max(maxx-minx, maxy-miny);
cout << minx << " " << miny << " " << l;
}
# | 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... |