QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#598279#5215. 多项式3un_larryfunc100 ✓303ms40344kbC++202.3kb2024-09-28 21:08:502024-09-28 21:08:51

詳細信息


Pretests


Final Tests

Test #1:

score: 10
Accepted
time: 109ms
memory: 39224kb

input:

5
18 255 3 193 3017
1001101010000011000
001
18 253 18 1293 2712
1010000110010011000
000010100001100110
18 252 18 2952 3357
1011001011100001000
100000001000100010
18 407 18 430 5886
1101110011100111101
000000110000110111
18 182 18 488 1535
1100000101000001111
100010101010000000

output:

353
3
4
7
2

result:

ok 5 number(s): "353 3 4 7 2"

Test #2:

score: 10
Accepted
time: 133ms
memory: 36956kb

input:

5
18 80741 3 113046 1098108
1000010011001101101
110
18 186066 18 379183 1273950
1100001001111100100
101000000010101010
18 65342 18 322809 1113891
1110001010011100110
000000000000000000
18 130725 18 696668 931741
1000000100001000110
000110000000000100
18 113795 18 362230 722989
1111100110001101011
01...

output:

115094
6888
90287
1233
1206

result:

ok 5 number(s): "115094 6888 90287 1233 1206"

Test #3:

score: 10
Accepted
time: 132ms
memory: 38672kb

input:

5
18 81147 3 559594 818348
1111011000011100110
101
18 191933 18 593665 685541
1111100011001111010
100000011000011100
18 133046 18 346553 1213199
1101110011100100010
000000000000000000
18 125311 18 1300971 1963986
1000000111001101011
010000000011111111
18 128938 18 539641 615508
1111110110110110110
0...

output:

22647
108
701055
13
73

result:

ok 5 number(s): "22647 108 701055 13 73"

Test #4:

score: 10
Accepted
time: 303ms
memory: 39108kb

input:

5
18 1124754010791117 3 15917328053323806 15917328053333805
1101100000011010110
011
18 6167665366246702 18 61997015219869231 61997015219879230
1000110000110001001
010000010101000101
18 8809208508473334 18 97755579845050183 97755579845060182
1000001010110000101
000000000000000000
18 4359323082579375 ...

output:

1251
0
100
1
12

result:

ok 5 number(s): "1251 0 100 1 12"

Test #5:

score: 10
Accepted
time: 298ms
memory: 37176kb

input:

5
18 4168028964839198 3 62021459821703506 62021459821713505
1101100011000110101
010
18 4215514569899004 18 32291817862183730 32291817862193729
1010110110111111110
000000000000010001
18 3939206564272093 18 30817088280979088 30817088280989087
1101110001111111111
000000000000000000
18 4458931866300106 ...

output:

0
0
60
72
34

result:

ok 5 number(s): "0 0 60 72 34"

Test #6:

score: 10
Accepted
time: 270ms
memory: 38716kb

input:

5
18 3318821649576959 3 1 59738789692385263
1010101010110010010
010
18 8932084213448590 18 1 160777515842074621
1001010011011101011
010001010000000001
18 3024137999063000 18 1 54434483983134001
1011010100001001011
000000000000000000
18 7985615307930357 18 1 143741075542746427
1101100101000011001
001...

output:

1875135830870060
522395684044760
22204054889188652
74544204448407
116737174788497

result:

ok 5 number(s): "1875135830870060 5223956840447... 74544204448407 116737174788497"

Test #7:

score: 10
Accepted
time: 255ms
memory: 39188kb

input:

5
18 8843353483063335 3 1 159180362695140031
1001110101110100011
010
18 8861939083558521 18 1 159514903504053379
1111001100100100101
000101001100100100
18 6585502075962361 18 1 118539037367322499
1000110100100110111
000000000000000000
18 5452613326599807 18 1 98147039878796527
1000100000101111001
01...

output:

1573899087981674
323850203137160
73397820036804040
2122279403969
138421046256726

result:

ok 5 number(s): "1573899087981674 3238502031371...0 2122279403969 138421046256726"

Test #8:

score: 10
Accepted
time: 265ms
memory: 40344kb

input:

5
18 8811341957968757 3 1 158604155243437627
1011110100111010000
111
18 3868973203778798 18 1 69641517668018365
1001110110111100011
010001010001000000
18 4503580210757614 18 1 81064443793637053
1101100010010011100
000000000000000000
18 8538377770565597 18 1 153690799870180747
1011001111010011101
011...

output:

3270357794926158
20626992701960
13353583431310439
21963882691285
8880380490574

result:

ok 5 number(s): "3270357794926158 2062699270196...39 21963882691285 8880380490574"

Test #9:

score: 10
Accepted
time: 284ms
memory: 39156kb

input:

5
18 3937846058268005 3 29530711734766962 45306774363060944
1111100100001110111
011
18 8919890939165093 18 11485993709951403 22972461466332159
1101001101001101101
001001110000001000
18 7560021396029167 18 95310384128638507 111011783372160521
1101010110101011111
000000000000000000
18 1890057576206183...

output:

1628457465380994
14987720994065
5049014464591662
7456683754022
5426386841748

result:

ok 5 number(s): "1628457465380994 1498772099406...662 7456683754022 5426386841748"

Test #10:

score: 10
Accepted
time: 282ms
memory: 38596kb

input:

5
18 2198507800083967 3 13843977297405656 28290158766768552
1001110101111100100
011
18 6648075433930527 18 75097479684218555 109866544362512076
1101000100100000011
110111111011110101
18 6522280426948423 18 11678940742830544 79553245882632684
1110011000001011100
000000000000000000
18 5248916496519897...

output:

587544800368712
20289530293743
41129903306592984
32339474797167
896213850479159

result:

ok 5 number(s): "587544800368712 20289530293743... 32339474797167 896213850479159"

Extra Test:

score: 0
Extra Test Passed