# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
995269 | gmroh06 | The Kingdom of JOIOI (JOI17_joioi) | C++14 | 718 ms | 61308 KiB |
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>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
using tll = tuple<ll, ll, ll, ll>;
inline void fastio() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
}
const ll INF = 1e18;
ll h, w, mn = INF, mx, ans = INF;
vector<vector<ll>> v;
bool chk(ll val) {
for (ll i = 0, tmp = 0; i < h; i++) {
for (ll j = 0; j < w; j++) if (v[i][j] + val < mx) {
tmp = max(tmp, j + 1);
}
for (ll j = 0; j < w; j++) if (v[i][j] > mn + val and j < tmp) {
return false;
}
}
return true;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |