QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#824768#9875. Don't Detect Cycleucup-team138#WA 2ms4532kbC++172.4kb2024-12-21 15:42:012024-12-21 15:42:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 4180kb

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

result:

ok Correct

Test #3:

score: -100
Wrong Answer
time: 2ms
memory: 4532kb

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:

818 783 1407 539 1500 2293 2630 1913 2812 2221 957 366 1869 2004 2111 98 172 2031 1787 2021 1424 1107 1740 835 1233 1885 2457 2834 142 2420 1853 2615 1304 283 1274 2209 2536 2430 1830 2815 2509 1818 2684 417 1370 2533 1249 1552 1160 689 2693 2020 199 1105 556 2881 2446 2005 1360 2141 1836 2660 623 7...

result:

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