# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
849288 | mickey080929 | Dungeon 2 (JOI16_dungeon2) | C++17 | 17 ms | 1376 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |