QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#118626#5502. Dazzling MountainGuanYunchangWA 5918ms30856kbC++171.1kb2023-07-03 19:27:372023-07-03 19:27:41

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
9
1 2
2 3
3 4
3 5
2 6
6 7
7 8
7 9

output:

4
1 3 8 9 

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 5918ms
memory: 30856kb

input:

10000
906
675 189
555 889
491 97
791 419
175 694
713 842
788 513
159 354
670 815
652 546
253 87
89 278
563 429
522 900
202 657
331 865
35 605
735 532
612 471
657 386
7 886
856 164
224 777
73 534
481 631
711 698
240 465
115 181
191 825
311 155
709 501
207 849
294 546
591 682
96 405
210 696
861 13
781...

output:

0

2
1 3 
0

3
1 2 3 
0

0

0

2
1 2 
4
1 2 3 4 
2
1 4 
0

0

2
1 2 
0

2
1 2 
6
1 2 3 4 5 6 
4
1 2 3 4 
0

2
1 2 
2
1 2 
2
1 2 
0

0

2
1 2 
0

2
1 2 
0

0

3
1 2 3 
0

0

0

0

0

5
1 2 3 4 5 
2
1 2 
0

3
1 2 3 
3
1 2 3 
0

2
1 2 
3
1 2 3 
0

0

4
1 2 3 4 
0

0

0

0

0

0

0

3
1 2 3 
0

0

3
1 2...

result:

wrong answer 1st lines differ - expected: '63', found: '0'