이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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(mx[0] - mn[0], mx[1] - mn[1]);
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |