Submission #933595

#TimeUsernameProblemLanguageResultExecution timeMemory
933595vjudge1Speedrun (RMI21_speedrun)C++17
21 / 100
23 ms1692 KiB
#include <bits/stdc++.h> #include "speedrun.h" using namespace std; bool vis[10000]; void dfs(int x, int p, int N) { vis[x] = true; for(int i=1; i<=N; i++) { if(getHint(i) && !vis[i]) { goTo(i); dfs(i, x, N); } } goTo(p); } void assignHints(int subtask, int N, int A[], int B[]) { setHintLen(N); for(int i=1; i<N; i++) { setHint(A[i], B[i], true); setHint(B[i], A[i], true); } } void speedrun(int subtask, int N, int start) { dfs(start, start, 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...