# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
49659 | model_code | Dangerous Skating (JOI16_skating) | C++17 | 410 ms | 55892 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 <cstdio>
#include <queue>
#include <vector>
using namespace std;
const int INF = 1001001001;
int in() { int x; scanf("%d", &x); return x; }
const int MAX = 2048;
char F[MAX][MAX];
int U[MAX][MAX], R[MAX][MAX], D[MAX][MAX], L[MAX][MAX], A[MAX][MAX];
int main() {
const int H = in();
const int W = in();
for (int i = 0; i < H; ++i) {
scanf("%s", F[i]);
for (int j = 0; j < W; ++j) {
A[i][j] = INF;
}
}
const int sr = in() - 1;
const int sc = in() - 1;
const int gr = in() - 1;
const int gc = in() - 1;
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... |