QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#822886#9875. Don't Detect Cycleucup-team5150WA 1ms4092kbC++172.5kb2024-12-20 17:14:242024-12-20 17:14:24

詳細信息

Test #1:

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

input:

1
4 4
1 2
2 3
3 4
4 2

output:

2 4 1 3 

result:

ok Correct

Test #2:

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

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

result:

wrong answer Wrong - you detected cycles