QOJ.ac

QOJ

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

詳細信息

Test #1:

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

input:

1
4 4
1 2
2 3
3 4
4 2

output:

1 2 3 4 

result:

ok Correct

Test #2:

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

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 
1 2 3 4 5 6 7 9 8 10 
-1

result:

wrong answer Wrong - you detected cycles