# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
849288 | mickey080929 | Dungeon 2 (JOI16_dungeon2) | C++17 | 17 ms | 1376 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 "dungeon2.h"
#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> pii;
const int inf = 1e9;
pii par[210];
vector<pii> up[210];
vector<pii> down[210];
int n;
int dist[210][210];
int ans[210];
int make_dfs_tree(int p) {
if (Color() == 2) {
Move(LastRoad(), 2);
return 0;
}
if (Color() == 3) {
Move(LastRoad(), 3);
return -1;
}
int x = ++ n;
par[x] = {LastRoad(), p};
int deg = NumberOfRoads();
for (int i=1; i<=deg; i++) {
if (i == par[x].first) continue;
Move(i, 2);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |