Submission #1002736

# Submission time Handle Problem Language Result Execution time Memory
1002736 2024-06-19T18:50:12 Z PagodePaiva Izvanzemaljci (COI21_izvanzemaljci) C++17
5 / 100
63 ms 4112 KB
#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({1LL, abs(maxx-minx), abs(maxy-miny)}) << endl;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 344 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 49 ms 4020 KB Output is correct
8 Correct 49 ms 4016 KB Output is correct
9 Correct 63 ms 4040 KB Output is correct
10 Correct 48 ms 4032 KB Output is correct
11 Correct 45 ms 4112 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 600 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -