QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#824385#9875. Don't Detect Cycleucup-team138#WA 9ms4644kbC++173.5kb2024-12-21 13:55:392024-12-21 13:55:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
4 4
1 2
2 3
3 4
4 2

output:

1 2 3 4 

result:

ok Correct

Test #2:

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

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 10 5 6 4 7 
-1

result:

ok Correct

Test #3:

score: -100
Wrong Answer
time: 9ms
memory: 4644kb

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 1379 265 701 1788 1638 105 1894 567 2781 2818 602 903 2886 1054 1694 2536 203 1239 2003 2594 1992 1266 2695 1338 270 100 2759 1494 2347 1114 2435 980 2076 784 1487 2260 2218 1255 742 1069 163 354 2532 2221 2170 630 979 1305 2700 1489 337 2660 1981 2618 1321 178 2787 2656 1731 655 140 2539 7...

result:

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