Submission #1002909

# Submission time Handle Problem Language Result Execution time Memory
1002909 2024-06-19T21:18:37 Z Juan Izvanzemaljci (COI21_izvanzemaljci) C++17
0 / 100
1 ms 348 KB
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define pii pair<int,int>

const int INF = 0x3f3f3f3f;

signed main(){
	int n,k; cin >> n >> k;
	int left=INF,right=-INF,up=-INF,down=INF;
	for(int i=0; i<n; i++){
		int a,b; cin >> a >> b;
		left = min(left,a);
		right = max(right,a);
		up = max(up,b);
		down = min(down,b);
	}

	cout << left << " " << down << " " << max(right-left, up-down) << '\n';
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 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 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 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 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 -