QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#118633#5502. Dazzling MountainMaMengQiTL 1ms42408kbC++171.5kb2023-07-03 19:44:442023-07-03 19:44:46

詳細信息

Test #1:

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

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
Time Limit Exceeded

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:

1
906 
0

1
15 
4
221 222 223 224 
2
10 97 
0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

5
541 542 543 544 608 
1
1005 
0

0

0

0

0

0

0

0

0

3
729 730 731 
8
548 549 589 590 591 1112 1113 1114 
0

0

0

0

0

0

0

0

0

0

1
1415 
0

0

0

0

0

0

0

0

0

0

1
1039 
0

0

...

result: