답안 #743929

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
743929 2023-05-18T06:16:08 Z siewjh Izvanzemaljci (COI21_izvanzemaljci) C++17
5 / 100
30 ms 844 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(1ll, max(mxx - mnx, mxy - mny));
	return 0;
} // subtask 1
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Correct 1 ms 316 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 20 ms 712 KB Output is correct
8 Correct 30 ms 844 KB Output is correct
9 Correct 22 ms 812 KB Output is correct
10 Correct 21 ms 724 KB Output is correct
11 Correct 22 ms 808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -