답안 #420603

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
420603 2021-06-08T12:55:16 Z JvThunder Izvanzemaljci (COI21_izvanzemaljci) C++17
5 / 100
36 ms 1132 KB
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fir first
#define sec second
typedef long long ll;

using namespace std;

int n,k;
void solve()
{
    cin >> n >> k;
    ll mnx = 0;
    ll mxx = 0;
    ll mny = 0;
    ll mxy = 0;
    for(int i=0;i<n;i++)
    {
        ll x,y;
        cin >> x >> y;
        if(i==0)
        {
            mnx = mxx = x;
            mny = mxy = y;
        }
        else
        {
            mnx = min(mnx,x);
            mxx = max(mxx,x);
            mny = min(mny,y);
            mxy = max(mxy,y);
        }
    }
    ll tmp = max(mxx-mnx,mxy-mny);
    cout << mnx << " " << mny << " " << max(tmp,1LL) << endl;
	return;
}

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	solve();
 	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 28 ms 1128 KB Output is correct
8 Correct 36 ms 1132 KB Output is correct
9 Correct 27 ms 1100 KB Output is correct
10 Correct 28 ms 1016 KB Output is correct
11 Correct 32 ms 1128 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -