This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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);
}
# | 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... |