QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#824723#9875. Don't Detect Cycleucup-team138#WA 7ms4452kbC++171.7kb2024-12-21 15:24:002024-12-21 15:24:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
4 4
1 2
2 3
3 4
4 2

output:

1 4 3 2 

result:

ok Correct

Test #2:

score: 0
Accepted
time: 1ms
memory: 4012kb

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

result:

ok Correct

Test #3:

score: -100
Wrong Answer
time: 7ms
memory: 4452kb

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:

647 2074 1788 1638 105 1894 2781 2818 903 2886 1054 1694 2536 203 2003 2695 1338 270 100 2759 1494 2347 1114 2435 980 784 2260 742 1069 163 2532 2221 2170 2218 630 979 1305 2700 1489 2660 1981 1321 1731 655 140 786 602 169 1529 2613 1081 1507 1323 1261 2799 440 347 1389 2701 2410 2509 844 50 1471 28...

result:

wrong answer Wrong - you can add all edges, but found: -1