QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#608646#5637. M-ary PartitionsGuanYunchang0 86ms4724kbC++171016b2024-10-04 00:29:322024-10-04 00:29:33

详细


Pretests


Final Tests

Test #1:

score: 0
Wrong Answer
time: 86ms
memory: 4724kb

input:

1000
1 3 9
2 3 47
3 5 123
4 7 4321
5 97 9999
6 6 216
7 90 8761
8 5 7720
9 6 4515
10 6 3309
11 5 6923
12 6 3986
13 4 5626
14 3 1036
15 8 1680
16 67 1633
17 3 1190
18 3 1383
19 31 7080
20 8 1632
21 9 7
22 4 3772
23 4 1323
24 25 9714
25 16 1881
26 9 8611
27 4 1155
28 8 3175
29 4 79
30 5 5708
31 4 4346
...

output:

5
63
75
144236
111
134
106
21089725
523800
182142
13454415
341520
76041920
1511871
4820
25
2785914
5566401
964
4472
1
13000256
195432
3224
496
234180
119874
26278
64
6191145
24028496
2107296
125286310
286434432
76781936
48848
54348491
2866686
1046871
954
557780
286035
488305
29517720
50795250
57
162...

result:

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