Submission #1002902

# Submission time Handle Problem Language Result Execution time Memory
1002902 2024-06-19T21:15:51 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=0,up=0,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 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 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 -
# 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 0 ms 348 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -