답안 #520614

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
520614 2022-01-30T10:44:41 Z topovik Izvanzemaljci (COI21_izvanzemaljci) C++14
5 / 100
24 ms 1092 KB
#include <bits/stdc++.h>
#pragma GCC optimize("unroll-loops")
#define pb push_back
#define f first
#define s second

using namespace std;

typedef long long ll;
typedef long double ld;

const ll oo = 1e18;

const ld eps = 1e-9;
const ll N = 1e3;
const ll M = 6e5;

const ld t = 0.9;

int main()
{
    ios_base::sync_with_stdio(0);
    iostream::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    ll n, k;
    cin >> n >> k;
    ll mn[2] = {oo, oo};
    ll mx[2] = {-oo, -oo};
    while (n--)
    {
        for (ll i = 0; i < 2; i++)
        {
            ll x;
            cin >> x;
            mx[i] = max(mx[i], x);
            mn[i] = min(mn[i], x);
        }
    }
    cout << mn[0] << " " << mn[1] << " " << max(max(mx[0] - mn[0], mx[1] - mn[1]), 1ll);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 24 ms 972 KB Output is correct
8 Correct 22 ms 1092 KB Output is correct
9 Correct 21 ms 1020 KB Output is correct
10 Correct 23 ms 1016 KB Output is correct
11 Correct 22 ms 1084 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 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 0 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 224 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -