QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#236559 | #2810. Speedrun | Ahmed57# | 0 | 0ms | 0kb | C++23 | 575b | 2023-11-04 06:05:53 | 2023-11-04 06:05:54 |
Judging History
speedrun
#include <bits/stdc++.h>
#include "speedrun.h"
//#include "grader.cpp"
using namespace std;
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 i,int pr,int n){
for(int j = 1;j<=n;j++){
if(j==pr)continue;
if(getHint(j)){
goTo(j);
dfs(j,i,n);
goTo(i);
}
}
}
void speedrun(int subtask, int N, int start){
int n =getLength();
dfs(start,0,n);
}
详细
Subtask #1:
score: 0
Interactor1 Dangerous Syscalls
Test #1:
score: 0
Interactor1 Dangerous Syscalls
input:
output:
input:
output:
result:
Subtask #2:
score: 0
Interactor1 Dangerous Syscalls
Test #5:
score: 0
Interactor1 Dangerous Syscalls
input:
output:
input:
output:
result:
Subtask #3:
score: 0
Interactor1 Dangerous Syscalls
Test #7:
score: 0
Interactor1 Dangerous Syscalls
input:
output:
input:
output:
result:
Subtask #4:
score: 0
Interactor1 Dangerous Syscalls
Test #10:
score: 0
Interactor1 Dangerous Syscalls
input:
output:
input:
output:
result:
Subtask #5:
score: 0
Interactor1 Dangerous Syscalls
Test #16:
score: 0
Interactor1 Dangerous Syscalls