QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#185558#6230. 水池ZhangYiDe0 701ms44104kbC++144.6kb2023-09-22 11:47:482023-09-22 11:47:48

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 7768kb

input:

451 469
799643869 554074088 313641255 240396194 289441005 120760635 60081214 502510219 361989963 460382686 31603393 669782854 307229342 102537485 383822174 40855518 1920840 158219655 284013679 702705326 126997001 742365412 188287595 162194743 73323070 549981194 165910073 731839013 534419392 57360831...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

result:

wrong answer 18th lines differ - expected: '594356061', found: '0'

Subtask #2:

score: 0
Wrong Answer

Test #3:

score: 0
Wrong Answer
time: 191ms
memory: 22156kb

input:

95763 92359
125406791 137432093 763265172 540984217 511101218 287278210 710943263 68325782 406866215 71018028 455549862 170376172 648802381 58005284 512058297 302287320 101566189 243586504 27102305 451590266 493939605 180158978 528068209 118140458 337869225 487573956 40596884 178126990 0 75901163 0 ...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 4th lines differ - expected: '847010708', found: '0'

Subtask #3:

score: 0
Wrong Answer

Test #5:

score: 0
Wrong Answer
time: 483ms
memory: 39464kb

input:

191995 194162
6891432 785450979 569857716 132255242 408871731 773453690 0 725347657 721477690 100255432 288415418 189257011 618042073 105998740 571269928 163803278 735085310 341019627 86391267 213232540 520854480 535331204 295794830 534945203 582403708 799435263 94893592 454575997 290616581 76159076...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
190810387
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 4th lines differ - expected: '884127445', found: '0'

Subtask #4:

score: 0
Wrong Answer

Test #7:

score: 0
Wrong Answer
time: 210ms
memory: 24884kb

input:

99057 99999
517200151 696399345 261176143 785161725 271341444 494132142 612344628 269719211 502358914 251918663 742118731 241849533 212679882 459839985 12090935 693695879 461541162 116365447 508973475 515271458 135064622 2780057 564671685 549876910 62487209 138469672 382327654 298983886 597058598 53...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 4th lines differ - expected: '887051469', found: '0'

Subtask #5:

score: 0
Wrong Answer

Test #9:

score: 0
Wrong Answer
time: 449ms
memory: 37148kb

input:

181439 182363
173196455 791637307 117409078 351254963 478560653 628560153 328836651 691159128 452914849 263276613 326224528 96034236 321262200 459154368 428625104 56828416 195992385 667170842 119347528 791746400 510061732 562219507 546684168 0 0 378219232 710998173 80970604 211767056 196090065 40580...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 3rd lines differ - expected: '835426981', found: '0'

Subtask #6:

score: 0
Wrong Answer

Test #11:

score: 0
Wrong Answer
time: 291ms
memory: 26088kb

input:

98129 95480
377412122 244725955 643347743 443420782 692782024 648529351 480738121 610089060 168296682 127083079 298579894 499233289 172744990 692910923 674931085 235605842 62064826 326190240 653620748 35477505 743746455 755958773 127706397 957977 19774381 761269692 390855319 499181449 309977179 1504...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

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

Subtask #7:

score: 0
Wrong Answer

Test #13:

score: 0
Wrong Answer
time: 690ms
memory: 42580kb

input:

196745 190192
530816289 110623315 28195048 522299730 569972702 61450893 11096188 243864530 511796004 641282498 128651835 596974715 206386531 420103078 794908692 3553871 22531630 405072789 284074824 701448666 52894648 660047723 449993619 155359896 495406323 732280568 278218962 0 631425418 782081407 6...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 12th lines differ - expected: '970084489', found: '0'

Subtask #8:

score: 0
Wrong Answer

Test #15:

score: 0
Wrong Answer
time: 681ms
memory: 43884kb

input:

192247 195207
283700978 375630805 304536900 656995707 349419833 708624942 672433502 520674515 764718893 239174457 133144085 330437569 746169379 70258518 594755714 90821371 135440873 284046069 13226018 205346297 580203021 165858312 328670472 369986775 626061182 147106705 233473844 284462500 125956912...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 9th lines differ - expected: '946220849', found: '0'

Subtask #9:

score: 0
Wrong Answer

Test #16:

score: 0
Wrong Answer
time: 701ms
memory: 44104kb

input:

200000 200000
528930985 235973207 466767467 402016659 317374245 250837951 507340678 253656348 258016597 272673016 79972069 655199701 467655017 688146502 333191236 297745886 269247236 233526144 566947127 342438540 474935181 287475130 95235847 489947025 608569833 225058316 314312314 672017306 34789162...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

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

Subtask #10:

score: 0
Wrong Answer

Test #17:

score: 0
Wrong Answer
time: 599ms
memory: 41132kb

input:

184466 180121
569024790 424341620 582247894 789997908 153645772 751624335 110488345 438497535 636816851 719408027 662734779 195349431 490536701 88364290 270826575 500058722 422096895 323370242 726020946 132560652 77857301 685544859 898126 517051590 207213973 305119180 230392425 292421735 763994110 6...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 32nd lines differ - expected: '852790406', found: '0'