#include "speedrun.h"
#include <iostream>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iterator>
#include <limits>
#include <list>
#include <cstring>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#include <unordered_map>
using namespace std;
typedef int ll;
typedef vector<ll> vi;
typedef pair<ll,ll> ii;
#ifdef px
#define p(x) cerr<<#x<<' '<<x<<endl;
#else
#define p(x) {}
#endif
#define F first
#define S second
#define sz size
#define ls s,m,idx<<1
#define rs m+1,e,idx<<1|1
const ll MOD=ll(1e9)+7;
const ll MAXN=2*ll(1e6);
ll posa[2001]={};
ll arxi=1;
void assignHints(int subtask, int N, int A[], int B[]) {
setHintLen(20);
for(ll i=1;i<N;i++){
posa[A[i]]++;
posa[B[i]]++;
if(posa[A[i]]>=2){
arxi=A[i];
break;
}else if(posa[B[i]]>=2){
arxi=B[i];
break;
}
}
}
void speedrun(int subtask, int N, int start) { /* your solution here */
if(start==arxi){
for(ll i=1;i<=N;i++){
if(i==arxi)continue;
goTo(i);
goTo(arxi);
}
}else{
goTo(arxi);
for(ll i=1;i<=N;i++){
if(i==arxi)continue;
goTo(i);
goTo(arxi);
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
13 ms |
752 KB |
Solution didn't visit every node |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
12 ms |
756 KB |
Solution didn't visit every node |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
19 ms |
756 KB |
Solution didn't visit every node |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
18 ms |
748 KB |
Solution didn't visit every node |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
14 ms |
748 KB |
Solution didn't visit every node |
2 |
Halted |
0 ms |
0 KB |
- |