Submission #857695

#TimeUsernameProblemLanguageResultExecution timeMemory
857695VanioSpeedrun (RMI21_speedrun)C++17
0 / 100
24 ms1420 KiB
#include<bits/stdc++.h> #include "speedrun.h" using namespace std; void assignHints(int st, int n, int a[], int b[]){ int i; setHintLen(n); for(i=1;i<n;i++){ setHint(a[i],b[i],1); setHint(b[i],a[i],1); } } int n; bool f[1001]; void rec(int k, int p){ int i; f[k]=1; for(i=1;i<n;i++){ if(getHint(i) && !f[i]){ goTo(i); rec(i,k); } } goTo(p); } void speedrun(int st, int N, int start){ n=N; rec(start,0); }
#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...