QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#820447#9875. Don't Detect Cycleucup-team4744#WA 258ms4228kbC++203.4kb2024-12-18 21:28:322024-12-18 21:28:33

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3652kb

input:

1
4 4
1 2
2 3
3 4
4 2

output:

3 2 1 4

result:

ok Correct

Test #2:

score: 0
Accepted
time: 0ms
memory: 3652kb

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

result:

ok Correct

Test #3:

score: -100
Wrong Answer
time: 258ms
memory: 4228kb

input:

50
3214 2907
970 1929
2860 3033
1322 2296
931 1192
861 2505
831 2469
231 2549
1 2306
1765 1842
999 3171
177 2007
1798 1894
827 3180
673 1738
1163 1573
2213 2781
2766 3200
1663 2197
1797 2281
315 2637
442 2689
558 2874
1520 2591
651 1923
1133 2920
1747 2412
1104 1528
313 2487
632 3124
660 2182
1581 2...

output:

759 1298 1885 2540 2761 2575 1253 2143 1695 2418 2589 1206 1456 2304 2210 509 2583 2048 1749 927 427 226 2904 1072 2483 1210 281 1811 1552 332 1605 2 1852 1368 872 2240 972 880 201 959 2685 1995 1771 774 1485 1233 2365 2518 1264 2562 1619 17 1760 1119 1808 843 1403 1199 632 126 1952 1184 2386 1276 2...

result:

wrong answer Wrong - you detected cycles