QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#235380#6328. Many Productsucup-team1721#WA 326ms24256kbC++176.8kb2023-11-02 18:26:542023-11-02 18:26:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3528kb

input:

2 3
0 1

output:

10

result:

ok 1 number(s): "10"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

5 1
0 1 2 3 4

output:

120

result:

ok 1 number(s): "120"

Test #3:

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

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: 253ms
memory: 24184kb

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: 274ms
memory: 24224kb

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: 302ms
memory: 24256kb

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: 0
Accepted
time: 305ms
memory: 24176kb

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:

150795568

result:

ok 1 number(s): "150795568"

Test #8:

score: 0
Accepted
time: 326ms
memory: 24256kb

input:

200000 549755813888
154464482 922506517 440386473 592872114 740241030 65093066 195263806 140372279 686442905 168161853 216221623 831551102 203181658 450884227 451817602 487635386 545548989 216183567 218772329 189773367 217113749 131736290 966799162 875967103 93914434 521722337 383140644 765520582 20...

output:

437668137

result:

ok 1 number(s): "437668137"

Test #9:

score: 0
Accepted
time: 306ms
memory: 24188kb

input:

199999 847288609443
538909891 62076038 846297776 955237158 229420572 214839844 464344742 574620261 23649742 896004520 961950387 407664313 359473680 627261484 831142841 945051217 661150108 981408974 203662235 723004670 181370365 892341019 697801198 168588955 359516923 635650887 610379739 269713869 21...

output:

447937133

result:

ok 1 number(s): "447937133"

Test #10:

score: 0
Accepted
time: 51ms
memory: 7020kb

input:

200000 1
290147746 164378694 228549560 747798391 389830621 209441203 923599439 77021620 431222973 528286185 275375247 836375003 69912873 468084121 529508739 502012618 888546699 279196338 682945369 401271076 979959203 969856299 419354950 464199794 752797654 272356219 733648717 438501203 583809849 374...

output:

960581872

result:

ok 1 number(s): "960581872"

Test #11:

score: 0
Accepted
time: 259ms
memory: 24184kb

input:

199999 2
456997655 595523808 131854612 671431878 844457985 224729609 198554845 463291311 261989774 593117867 424503239 170351502 394072587 868548033 730651713 205230254 184158230 113347601 315207435 155734777 530360727 219655064 183851924 327130440 697250929 185601652 615062692 436902689 686638630 5...

output:

63413518

result:

ok 1 number(s): "63413518"

Test #12:

score: 0
Accepted
time: 264ms
memory: 24228kb

input:

200000 4
183814833 771524932 127252360 147996415 276875512 467951477 270825754 361030400 396200006 385596998 253829085 39158855 176152348 444150136 88618737 762684749 513984568 119516467 711633545 294128983 666436764 962527431 653397116 161978485 969639496 339650506 804701248 265124428 436768654 535...

output:

505383081

result:

ok 1 number(s): "505383081"

Test #13:

score: -100
Wrong Answer
time: 3ms
memory: 3620kb

input:

1 762939453125
259588516

output:

0

result:

wrong answer 1st numbers differ - expected: '540355949', found: '0'