#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';
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "AC" found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "AC" found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "AC" found |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "AC" found |
2 |
Halted |
0 ms |
0 KB |
- |