| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 554943 | bigg | Speedrun (RMI21_speedrun) | C++14 | 16 ms | 584 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "speedrun.h"
#include<bits/stdc++.h>
using namespace std;
const int MAXN = 1e3 + 10;
void assignHints(int subtask, int N, int A[], int B[]) { /* your solution here */
setHintLen(N);
for(int i = 1; i < N; i++ ){
setHint(A[i], B[i], 1);
setHint(B[i], A[i], 1);
}
}
int l;
void dfs(int x, int p){
for(int i = 1; i <= l; i++){
if(i == p) continue;
if(getHint(i)){
goTo(i);
}
}
goTo(p);
}
void speedrun(int subtask, int N, int start) { /* your solution here */
l = getLength();
dfs(start, start);
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
