QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#813412#9875. Don't Detect Cycleucup-team4582#WA 1ms3732kbC++173.7kb2024-12-14 08:39:572024-12-14 08:39:57

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3660kb

input:

1
4 4
1 2
2 3
3 4
4 2

output:

2 1 3 4 

result:

ok Correct

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3732kb

input:

4
4 5
1 2
2 3
3 4
3 1
1 4
5 3
1 2
2 3
3 4
9 10
3 5
1 8
5 8
4 9
6 7
7 9
1 2
1 4
2 4
4 6
8 10
1 4
3 8
2 5
3 4
1 5
5 8
2 8
5 7
4 5
3 7

output:

-1
1 2 3 
6 7 1 2 3 4 5 8 9 10 
-1

result:

wrong answer Wrong - you detected cycles