QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#880098#9691. Little, Cyan, Fish!ucup-team159AC ✓3546ms467716kbC++2028.7kb2025-02-02 21:32:382025-02-02 21:32:40

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 3
1 2 3 4 5
1 2 3 4 5
1 3 5 3
3 5 3 1
5 5 1 1

output:

9

result:

ok 1 number(s): "9"

Test #2:

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

input:

300 300
359223646 353333050 638758992 902678193 564238503 602976356 362568978 374624692 448100347 222736350 534637089 415043929 139304846 34636504 531794165 971218681 521043008 209728084 893019853 902111971 183666857 556720993 69534269 291223272 391710121 979856021 345864729 814088883 148475024 1243...

output:

523692978

result:

ok 1 number(s): "523692978"

Test #3:

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

input:

300 300
607417012 329685472 552355585 262216459 841676288 360018643 347032575 974054787 319656520 512595845 771247976 869176834 424107730 118735537 693769550 590893576 858278537 143842141 334311204 676981641 93730191 63241965 524496485 984244186 216949553 345870956 628096664 614812100 726911745 4682...

output:

343995288

result:

ok 1 number(s): "343995288"

Test #4:

score: 0
Accepted
time: 1ms
memory: 4096kb

input:

298 300
230716603 364765433 639400913 383999849 244904529 840766754 569294228 208139002 233875391 944069220 239411645 384288756 735398390 225124768 710464937 363291834 290795465 205662089 438980754 232138636 170149737 910219285 233296220 69153465 399818178 57260586 360188137 81846009 361053995 34721...

output:

102024078

result:

ok 1 number(s): "102024078"

Test #5:

score: 0
Accepted
time: 3233ms
memory: 464960kb

input:

100000 100000
586696029 406586516 574575894 680218421 642933995 8772619 471696844 382163414 751180987 113971229 769309107 753080391 428247800 334875961 288299449 235325833 146765739 54465736 113866861 728283512 508004052 364487220 609014946 797877775 235083364 358842216 577167487 380642896 408808554...

output:

0

result:

ok 1 number(s): "0"

Test #6:

score: 0
Accepted
time: 3252ms
memory: 467716kb

input:

100000 100000
505190553 434257171 950376048 130542733 89907933 446858812 503958209 809252334 424000501 662034008 427433488 391733482 652690626 22276465 468128846 119815589 334823665 833790856 625447440 71549547 277241074 782659587 368339498 613175211 741941887 219889418 208367925 233968187 531860740...

output:

0

result:

ok 1 number(s): "0"

Test #7:

score: 0
Accepted
time: 3258ms
memory: 466416kb

input:

99995 100000
931806735 181104551 586370970 195212999 487349849 756770869 482330233 409841392 925418052 655854110 347985854 839282613 750636207 173661415 9578613 606816026 120657849 396781613 284250590 571540861 229971926 489743543 661209328 178131988 953371492 341246440 574620913 944215187 952895392...

output:

0

result:

ok 1 number(s): "0"

Test #8:

score: 0
Accepted
time: 3515ms
memory: 353616kb

input:

100000 100000
270681661 765722494 791348414 771539928 765881359 648650013 27012094 688293622 341316625 543564759 21362420 649021505 24136821 17310872 424181750 225642610 177659458 896890756 856500620 672160299 26034628 357658313 522300436 275970725 159271187 280037569 958884961 638853601 691378133 5...

output:

555536516

result:

ok 1 number(s): "555536516"

Test #9:

score: 0
Accepted
time: 3546ms
memory: 353736kb

input:

100000 100000
78084471 913540257 755580454 417380345 889849538 744257846 152891794 529887119 243531057 296098826 44946301 847087231 534283300 867068909 270954720 204636488 359023284 474576839 109719636 142733746 904653548 302210187 516026272 262205675 14338458 150351898 616630592 818108324 264059299...

output:

915831839

result:

ok 1 number(s): "915831839"

Test #10:

score: 0
Accepted
time: 3499ms
memory: 353740kb

input:

99995 100000
756541851 932438748 204212152 321424034 892774850 838615641 433944574 23814919 168622475 872480375 844210713 98040481 675805225 422734744 52289501 850728998 757129183 66771688 206308274 714745607 636324189 653020562 199390295 505871404 30252791 962382150 487964658 686114875 462921185 12...

output:

684502340

result:

ok 1 number(s): "684502340"

Test #11:

score: 0
Accepted
time: 3187ms
memory: 409672kb

input:

100000 100000
320288007 604262264 887371660 867701195 542028546 720225152 919320681 245414210 124714796 106485209 587359321 895951670 884683017 239520751 864963788 9631023 896117045 404792249 653321005 940268124 558946405 957120831 452880708 618422005 957659567 740560298 840323527 457812319 58229709...

output:

690693772

result:

ok 1 number(s): "690693772"

Test #12:

score: 0
Accepted
time: 3231ms
memory: 409676kb

input:

100000 100000
386009138 27784291 860507865 624141853 13184282 200153985 276739318 405950994 143989041 705671147 51780911 7619303 168570972 198934586 522819252 373766866 806621738 650073521 607709535 19523229 24102772 532241102 105372659 319424266 329334397 85419296 960649516 303534223 534191209 5917...

output:

502861061

result:

ok 1 number(s): "502861061"

Test #13:

score: 0
Accepted
time: 3203ms
memory: 411684kb

input:

99995 100000
913607772 553678744 202493623 894904323 17492236 117733625 828152606 183375127 212639814 539126977 708059530 223553808 358442791 510304520 173177117 168448674 810132102 268268907 5167793 77886376 576506226 440342112 929342438 145994032 651546431 234130 172658260 74714431 890129127 43712...

output:

149206518

result:

ok 1 number(s): "149206518"

Test #14:

score: 0
Accepted
time: 3228ms
memory: 409548kb

input:

100000 100000
551035567 119394193 649048920 270545416 762888802 130254009 77631894 280019656 937229923 725882440 972159629 871332249 500149101 260830408 214698050 662625912 801793556 246882347 94623121 118960551 179519560 152936521 155900085 497010750 745609159 735714932 374729409 773387922 43376004...

output:

911978698

result:

ok 1 number(s): "911978698"

Test #15:

score: 0
Accepted
time: 3171ms
memory: 409624kb

input:

100000 100000
68766155 354934225 971978899 742132115 182431505 501762040 917268564 78167875 150868353 897389178 18652765 56074091 965885280 40300786 766897700 938513631 4994047 345360626 348805768 623234079 956658100 898147133 652500490 673515600 866467639 744665239 437101739 413937310 22834014 7134...

output:

37594143

result:

ok 1 number(s): "37594143"

Test #16:

score: 0
Accepted
time: 3202ms
memory: 409668kb

input:

99995 100000
63581939 669044436 132127540 819019856 904831150 658612699 895724822 228724589 263660607 924388662 52887410 41936010 12570111 277795777 616014883 338677406 286859601 844160030 392842358 247395763 646281731 884202673 96857778 726510934 781859324 636669131 584387494 529691611 827857103 35...

output:

692270999

result:

ok 1 number(s): "692270999"

Extra Test:

score: 0
Extra Test Passed