#include<bits/stdc++.h>
#define endl '\n'
#define int long long
using namespace std;
int32_t main(){
int n, k;
cin >> n >> k;
vector <pair <int, int>> v;
for(int i = 0;i < n;i++){
int a, b;
cin >> a >> b;
v.push_back({a, b});
}
int minx = 1e12, maxx = -1e12, miny = 1e12, maxy = -1e12;
for(auto x : v){
minx = min(x.first, minx);
maxx = max(x.first, maxx);
miny = min(x.second, miny);
maxy = max(x.second, maxy);
}
cout << minx << ' ' << miny << ' ' << max(abs(maxx-minx), abs(maxy-miny)) << endl;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Integer 0 violates the range [1, 2*10^9] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Integer 0 violates the range [1, 2*10^9] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Integer 0 violates the range [1, 2*10^9] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Unexpected end of file - int64 expected |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Unexpected end of file - int64 expected |
2 |
Halted |
0 ms |
0 KB |
- |