QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#821553#9875. Don't Detect Cycleucup-team878#WA 1ms3832kbC++204.4kb2024-12-19 16:33:432024-12-19 16:33:43

詳細信息

Test #1:

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

input:

1
4 4
1 2
2 3
3 4
4 2

output:

4 3 1 2 

result:

ok Correct

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3768kb

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

result:

wrong answer Wrong - you detected cycles