QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#236556 | #2810. Speedrun | Ahmed57# | 0 | 0ms | 0kb | C++23 | 770b | 2023-11-04 05:58:34 | 2023-11-04 05:58:34 |
Judging History
speedrun
#include <bits/stdc++.h>
#include "speedrun.h"
//#include "grader.cpp"
using namespace std;
vector<int> adj[1001];
void assignHints(int subtask,int N,int A[],int B[]){
setHintLen(N);
for(int i = 1;i<N;i++){
adj[A[i]].push_back(B[i]);
adj[B[i]].push_back(A[i]);
}
for(int i = 1;i<=N;i++){
for(int j = 0;j<adj[i].size();j++){
setHint(i,adj[i][j],1);
}
}
}
int vis[1001];
int n;
void dfs(int i){
vis[i] = 1;
for(int j = 1;j<=n;j++){
if(vis[j])continue;
if(getHint(j)){
goTo(j);
dfs(j);
goTo(i);
}
}
}
void speedrun(int subtask, int N, int start){
int l =getLength();
n = N;
dfs(start);
}
详细
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