QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#97583#6328. Many ProductssmaxTL 167ms5940kbC++234.1kb2023-04-17 11:23:072023-04-17 11:23:10

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3344kb

input:

2 3
0 1

output:

10

result:

ok 1 number(s): "10"

Test #2:

score: 0
Accepted
time: 2ms
memory: 3344kb

input:

5 1
0 1 2 3 4

output:

120

result:

ok 1 number(s): "120"

Test #3:

score: 0
Accepted
time: 10ms
memory: 3364kb

input:

10 314159265358
0 1 2 3 4 5 6 7 8 9

output:

658270849

result:

ok 1 number(s): "658270849"

Test #4:

score: 0
Accepted
time: 50ms
memory: 4488kb

input:

200000 999999999989
823489320 406308599 710963770 183707427 192930969 941365774 318564299 391028855 945374838 651744270 515755727 220857626 599403217 214957584 335628890 771694833 40989299 34892948 630275822 869708185 432704750 924850167 707864789 232688853 406616372 529994171 782650336 979286144 65...

output:

777405593

result:

ok 1 number(s): "777405593"

Test #5:

score: 0
Accepted
time: 49ms
memory: 4580kb

input:

199999 999999999331
969252353 737776924 108584656 914893031 394348303 484491127 481944452 120707790 396027156 912223841 673218447 285837840 782450963 144940963 892852383 782342131 655814479 1324532 794011279 219428289 470995270 489684781 347978895 102371386 546635675 585575402 940741300 644383693 67...

output:

573300948

result:

ok 1 number(s): "573300948"

Test #6:

score: 0
Accepted
time: 167ms
memory: 5940kb

input:

200000 742073813481
681694404 632869785 595996398 549654767 229574822 571126931 469341419 702184356 904366313 746328903 842820475 578092052 586236587 796973195 766841610 123554290 666934376 118830348 326368534 40766155 790927880 880528134 890721558 357539968 885997091 937508042 5345140 189162897 200...

output:

998002127

result:

ok 1 number(s): "998002127"

Test #7:

score: -100
Time Limit Exceeded

input:

199999 963761198400
124206358 425059813 396286827 293468808 45861386 890748681 587148852 2565459 137729579 865441288 710978415 682768035 62610967 490442955 426217252 132942846 314800009 680954919 208583546 438814504 79283475 26876485 718279429 714019319 799517726 874565672 262935553 180792133 654326...

output:


result: