QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#805276#9655. Divide a Treeucup-team4744AC ✓157ms23880kbC++202.1kb2024-12-08 15:18:242024-12-08 15:18:25

詳細信息

Test #1:

score: 100
Accepted
time: 157ms
memory: 23880kb

input:

100
10
3 4 5 2 1 3 1 4 5 2
7 5
5 8
4 10
6 1
2 8
1 2
9 1
10 2
3 9
5
2 1 2 1 1
5 4
2 3
3 4
1 3
10
1 1 2 2 3 3 4 4 5 5
4 2
1 2
1 5
6 2
1 3
8 10
9 7
8 2
1 7
8
1 2 3 4 3 4 1 2
1 7
2 8
3 8
4 2
8 6
8 1
3 5
5
2 2 3 2 2
2 5
1 2
1 4
1 3
8
1 1 2 2 3 3 4 4
1 5
1 3
4 2
1 7
8 2
6 2
1 2
10
2 5 1 5 4 3 3 1 2 4
8 3
...

output:

Case 1: 5
Case 2: 1
Case 3: 1
Case 4: 3
Case 5: 2
Case 6: 1
Case 7: 4
Case 8: 2
Case 9: 1
Case 10: 27
Case 11: 12
Case 12: 2
Case 13: 30
Case 14: 10
Case 15: 1
Case 16: 25
Case 17: 8
Case 18: 1
Case 19: 22
Case 20: 18
Case 21: 2
Case 22: 20
Case 23: 4
Case 24: 1
Case 25: 28
Case 26: 12
Case 27: 1
Ca...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed