Submission #420871

# Submission time Handle Problem Language Result Execution time Memory
420871 2021-06-08T14:33:25 Z MetalPower Izvanzemaljci (COI21_izvanzemaljci) C++14
0 / 100
1 ms 204 KB
#include <bits/stdc++.h>
using namespace std;

int N, K;

int main(){
	ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL);

	cin >> N >> K;

	if(K == 1){

		int min_x = 1e9, max_x = 0, min_y = 1e9, max_y = 0;

		for(int i = 0; i < N; i++){
			int x, y; cin >> x >> y;
			min_x = min(min_x, x);
			max_x = max(max_x, x);
			min_y = min(min_y, y);
			max_y = max(max_y, y);
		}

		cout << min_x << " " << min_y << " " << max(1, max(max_x - min_x, max_y - min_y)) << '\n';

	}else{
		cout << "AC" << '\n';
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Expected integer, but "AC" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Expected integer, but "AC" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Expected integer, but "AC" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Expected integer, but "AC" found
2 Halted 0 ms 0 KB -