QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#505654 | #4203. Forgotten Homework | xiaowuc1 | AC ✓ | 86ms | 3928kb | C++17 | 2.2kb | 2024-08-05 06:37:49 | 2024-08-05 06:37:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3516kb
input:
3 1 1 0 2 0 4 0 0 1 1 1 0 0 1 0 0
output:
8
result:
ok single line: '8'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
1 1 1 2 2
output:
4
result:
ok single line: '4'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
2 1 2 1 2 3 1 1 0 1
output:
4
result:
ok single line: '4'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
2 1 1 1 2 3 1 1 1 0
output:
5
result:
ok single line: '5'
Test #5:
score: 0
Accepted
time: 85ms
memory: 3648kb
input:
3000 2552 1047 331040751 449330962 921467711 260201301 965909817 839628614 261919292 514881351 933393476 68562426 118397287 679169103 952767822 778337218 791671110 70358494 815151244 22287699 258810868 814029887 163532937 148185085 531587599 611174529 136272839 57913466 199324971 568206306 242994033...
output:
117149475
result:
ok single line: '117149475'
Test #6:
score: 0
Accepted
time: 86ms
memory: 3928kb
input:
3000 2351 2351 0 680477554 848325883 286123356 663883092 403622995 536995409 661617341 878737859 494800781 796098171 437123890 181794428 63579100 936972658 872608440 981414835 210093739 176896862 923821929 719140686 510481486 863059839 973653878 878028542 141232390 778183052 913895924 593697250 7393...
output:
99425807
result:
ok single line: '99425807'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
2 1 2 51847156 391616734 79634084 698935572 51847156 77777868 881836553
output:
149815092
result:
ok single line: '149815092'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
1 1 1 135646772 135646772
output:
625219662
result:
ok single line: '625219662'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
2 2 2 726540503 981326859 181466547 148755562 199871617 930463701 726540503
output:
640139502
result:
ok single line: '640139502'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
3 1 2 620720814 722142203 926637708 511508197 541885991 518146651 620720814 15926217 221296288 496692033 873297046 527525518 884321821 297985537
output:
352581524
result:
ok single line: '352581524'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3548kb
input:
116 111 72 369800493 731228212 341787771 678885411 795224375 404360039 852832061 218990135 790692135 773486864 896420419 12085181 542368273 761063110 906927777 805392261 595935063 906657065 303621118 551796679 26015722 633436307 250227036 196988201 4527647 441431442 266564841 336979003 735366502 259...
output:
231017932
result:
ok single line: '231017932'
Test #12:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
122 35 85 766514064 118529892 429632887 287263887 82147067 43291011 309698758 644922747 903028913 863893923 310903136 49369987 820733573 642134868 557043457 65686534 887203934 800859688 181276515 752361130 118285927 555375398 977426408 950948729 380859356 467165725 106712045 999154639 353344487 2183...
output:
805550005
result:
ok single line: '805550005'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
67 38 24 135642069 217575703 617520192 710832350 342669346 918903141 979064395 971618424 256191018 378442074 327416537 10020268 629136084 276180595 288820635 199227926 154036114 71308931 529816189 116028147 516226851 566880246 512204002 560332170 80526047 446339883 711365686 512349159 663226481 1606...
output:
670158385
result:
ok single line: '670158385'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
28 20 23 583406516 124378235 378046568 295367530 569045623 184457616 646058712 626690570 820947735 243588121 785644798 559278949 996577883 961748896 366639313 19619349 760566951 486613622 10252706 637466000 158409575 678304459 928638726 970949495 5567791 47773862 436402527 37518064 286937314 5736997...
output:
691338548
result:
ok single line: '691338548'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
54 1 34 993037542 565710322 431416259 68642773 887745390 639115642 359707323 511396397 413358410 278248318 172222295 398658756 499741310 952493079 533998047 450337727 770039756 262448758 968193639 265242246 351976879 254919329 339451899 213793033 18986514 795446251 584126078 765574238 717424612 9296...
output:
217858849
result:
ok single line: '217858849'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
93 61 61 179668813 722901706 548864704 14876424 278352283 739969909 98634842 482456185 942244538 407256800 267633871 271104213 975608422 714856045 512270746 807200626 635337200 484518787 370460794 437684728 696598619 343685981 473728602 25770450 192744268 326363344 586038640 123659873 480257098 3417...
output:
160178513
result:
ok single line: '160178513'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
134 107 107 672951573 552605715 339528507 17349903 290866251 709760493 629788871 460622564 262889584 623583142 251419139 891465080 672290346 939735622 697274159 63126330 305406929 840788435 437365163 616941105 195197776 710085236 809524812 500520387 113560990 362023321 224437360 386348363 684988973 ...
output:
614677961
result:
ok single line: '614677961'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3492kb
input:
47 8 8 705243304 858617283 797195881 67304327 612660409 331023976 299477234 484867322 887568183 6989609 434359325 322267008 150433944 865559550 607727653 772681182 648881411 838929588 236965760 256833032 445117179 238967997 333584594 452343672 769516988 602481760 381051564 921931030 141316379 225665...
output:
546263828
result:
ok single line: '546263828'
Test #19:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
174 12 12 68999394 390434371 413433203 366312857 923558899 732114230 510480363 128306558 549579886 958296920 659887171 235031447 474194170 538046779 727548594 874489678 51663925 347863352 254065559 721014738 618203682 995341512 847303847 727436513 669150116 268258617 254494247 384755968 933758288 12...
output:
724592443
result:
ok single line: '724592443'
Test #20:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
186 176 176 593423345 665902926 619782928 112825559 23255542 242713262 151854662 829727716 825657437 112617481 702350909 584272913 405181337 120075915 972696847 492506388 325920324 145332279 95985492 153076240 441416245 255235471 648610161 870488630 206834279 262563 813350548 774335796 939387389 787...
output:
19138155
result:
ok single line: '19138155'