Submission #933602

#TimeUsernameProblemLanguageResultExecution timeMemory
933602vjudge1Speedrun (RMI21_speedrun)C++17
0 / 100
1 ms344 KiB
#include <bits/stdc++.h> #include "speedrun.h" using namespace std; using ll = long long; using vll = vector <ll>; void assignHints (int subtask, int n, int u[], int v[]) { setHintLen(n); for (int i = 0; i < n-1; i++) { setHint(u[i]-1, v[i]-1, true); setHint(v[i]-1, u[i]-1, true); } return; } static void dfs (int u, int par, int n) { for (int v = 1; v <= n; v++) { if (v == u) continue; if (v == par) continue; if (getHint(v-1)) { goTo(v); dfs(v, u, n); goTo(u); } } return; }; void speedrun (int subtask, int n, int at) { dfs(at, at, n); return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...