# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
837189 | _martynas | The Kingdom of JOIOI (JOI17_joioi) | C++11 | 1 ms | 212 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;
#warning change mxn
const int mxn = 55;
const int inf = 100;
int h, w;
int mxa = 0;
int a[mxn][mxn];
bool b[mxn][mxn];
int check() {
int mnj = w;
int mn = inf/2, mx = 0;
for(int i = 0; i < h; i++) {
for(int j = 0; j < mnj; j++) {
if(b[i][j]) mnj = j;
}
for(int j = mnj; j < w; j++) {
mn = min(mn, a[i][j]);
mx = max(mx, a[i][j]);
}
}
return mx-mn;
}
bool solve(int k) {
for(int i = 0; i < h; i++)
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |