Submission #743926

# Submission time Handle Problem Language Result Execution time Memory
743926 2023-05-18T06:14:56 Z siewjh Izvanzemaljci (COI21_izvanzemaljci) C++17
0 / 100
1 ms 340 KB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll inf = 1e12;
int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	int nums, k; cin >> nums >> k;
	ll mnx = inf, mny = inf, mxx = -inf, mxy = -inf;
	for (int i = 0; i < nums; i++){
		ll x, y; cin >> x >> y;
		mnx = min(mnx, x); mny = min(mny, y);
		mxx = max(mxx, x); mxy = max(mxy, y);
	}
	cout << mnx << ' ' << mny << ' ' << max(mxx - mnx, mxy - mny);
	return 0;
} // subtask 1
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 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 212 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 212 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 340 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -