Submission #736976

#TimeUsernameProblemLanguageResultExecution timeMemory
736976jk410Speedrun (RMI21_speedrun)C++17
21 / 100
43 ms688 KiB
#include "speedrun.h" void assignHints(int subtask, int N, int A[], int B[]) { setHintLen(N); for (int i = 1; i < N; i++) { setHint(A[i], B[i], 1); setHint(B[i], A[i], 1); } } void dfs(int v, int par, int n) { for (int i = 1; i <= n; i++) { if (i == par) continue; if (getHint(i)) { goTo(i); dfs(i, v, n); } } if (par) goTo(par); } void speedrun(int subtask, int N, int start) { dfs(start, 0, N); }
#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...