QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#649555#9437. Solve with Friendsucup-team4633RE 1ms3944kbC++202.4kb2024-10-18 01:51:222024-10-18 01:51:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

10

result:

ok "10"

Test #2:

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

input:

5
2 4 3 1 2
9 2 5 3 8
1 2 8 3 2
5 4 3 2 1

output:

28

result:

ok "28"

Test #3:

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

input:

8
21 85 72 22 81 20 88 28
75 22 78 92 55 56 73 44
39 14 64 27 73 42 16 84
27 7 91 85 69 95 70 27

output:

621

result:

ok "621"

Test #4:

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

input:

11
141 130 761 372 345 44 748 993 177 653 57
193 204 209 98 848 495 120 505 288 454 73
209 689 533 543 201 437 362 861 541 308 673
320 126 38 405 551 627 577 591 195 305 432

output:

6332

result:

ok "6332"

Test #5:

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

input:

40
363 411 688 848 677 296 110 36 879 755 88 877 812 668 660 656 680 577 124 719 302 627 832 721 846 79 992 834 356 826 261 846 342 896 291 385 18 412 272 694
911 939 402 895 617 616 934 492 475 304 697 769 39 918 206 638 487 50 959 537 569 830 889 829 22 104 744 945 399 641 376 72 810 177 298 44 27...

output:

35024

result:

ok "35024"

Test #6:

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

input:

14
95 758 610 430 691 196 4 739 270 956 876 16 879 807
353 263 770 777 298 457 838 79 574 490 27 859 780 941
911 519 24 902 556 162 268 712 940 215 599 566 179 18
763 867 232 683 948 804 805 148 306 378 135 70 901 755

output:

12611

result:

ok "12611"

Test #7:

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

input:

11
11 229 702 188 664 569 440 715 775 211 956
169 341 176 192 427 589 152 383 810 55 410
352 17 13 571 12 309 424 41 972 370 863
206 598 934 843 232 601 700 841 483 283 428

output:

7533

result:

ok "7533"

Test #8:

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

input:

10
858 354 617 549 321 695 13 950 207 272
156 658 70 432 618 349 890 972 690 345
257 278 319 547 50 697 978 555 987 388
601 442 661 275 804 182 152 397 176 710

output:

7251

result:

ok "7251"

Test #9:

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

input:

20
833 921 562 268 97 952 164 611 564 469 342 771 533 903 260 871 778 964 978 257
895 690 823 275 129 7 125 13 139 903 129 161 166 735 236 815 842 637 400 910
365 210 421 999 947 290 794 919 889 302 444 207 908 242 361 713 186 344 418 281
884 155 324 199 43 692 192 263 835 745 935 865 488 739 362 55...

output:

17556

result:

ok "17556"

Test #10:

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

input:

7
529 303 448 872 618 418 587
192 345 179 580 289 586 876
797 286 350 377 108 211 377
362 330 759 747 454 396 947

output:

5719

result:

ok "5719"

Test #11:

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

input:

34
5 882 704 639 163 46 756 126 688 528 530 64 420 98 266 401 163 583 475 11 947 876 26 161 73 269 148 424 573 192 787 330 334 941
625 285 576 325 15 899 697 499 762 918 459 747 448 777 312 512 327 194 16 742 121 954 613 783 452 302 977 325 897 691 408 491 65 68
541 671 526 967 557 663 939 864 478 5...

output:

28871

result:

ok "28871"

Test #12:

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

input:

37
453 881 251 788 634 664 32 307 65 246 157 652 625 59 766 525 420 234 167 512 723 329 519 710 76 786 570 251 155 685 837 949 503 261 169 839 637
232 379 261 799 345 789 692 601 180 306 764 335 684 713 95 67 251 121 825 384 79 124 341 972 762 141 150 355 784 822 893 221 106 922 284 532 561
964 216 ...

output:

29187

result:

ok "29187"

Test #13:

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

input:

33
632 428 227 22 468 111 352 234 244 932 636 333 669 642 767 232 496 585 124 410 526 639 238 376 775 983 418 79 30 362 246 286 712
844 770 852 841 398 915 951 80 100 767 561 491 626 414 320 901 110 374 317 734 347 802 306 872 643 507 400 249 398 28 666 578 620
289 475 230 881 237 996 13 276 461 904...

output:

24593

result:

ok "24593"

Test #14:

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

input:

769
447040672 441035275 440050901 1812839 403614015 713651056 637121294 744115913 485123083 541990146 676486668 933001858 36637012 504195819 48650468 550879589 831250106 365665984 723728794 362464150 597604335 155032923 740664647 461753890 765470796 766872615 704932835 138868943 729334132 82099448 8...

output:

619566247863

result:

ok "619566247863"

Test #15:

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

input:

386
406027879 481265607 133900424 975297532 82942773 302298908 865179778 464746606 598174500 74119666 188711202 909567219 233900160 191173287 413890294 554630222 517362947 157763526 463019261 557716319 845796102 27076594 883524018 612484941 71541493 880763951 394945686 686267964 124713046 108124650 ...

output:

308704812875

result:

ok "308704812875"

Test #16:

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

input:

211
459882217 446767163 139128402 795102655 573320724 42284179 926851120 814131922 423156194 594047114 498370095 919963365 439899823 683870364 476720601 756025894 940194579 665614627 742718766 625601975 412449710 17011208 292047805 373583417 648039111 630022817 625355382 562936856 540531934 86437952...

output:

175437355791

result:

ok "175437355791"

Test #17:

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

input:

594
403346078 505392787 838747224 741934860 335395715 924942050 940655541 896801793 433758482 545558829 525808137 362142751 564552056 843644343 369685080 626948789 499782718 455547647 610093171 675243992 448440973 353565661 290813178 24302074 423064788 131536699 976627330 958021289 705160841 7497403...

output:

482276640149

result:

ok "482276640149"

Test #18:

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

input:

537
739776591 568582227 933001863 36712644 701592616 908124855 688158756 611031174 334133061 104610919 480342160 719654047 597668025 151737333 112516515 205716422 27224481 147826953 962752912 772653663 156492229 571158648 211494846 508440937 529396746 546360501 40865735 709382929 843412979 776126030...

output:

448540617602

result:

ok "448540617602"

Test #19:

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

input:

895
489141410 432277154 344949477 433754863 484734296 450097978 285561285 876307774 661898089 555881960 80487043 904775915 237090595 125714753 837686847 100039394 956132777 103452538 338793920 56515016 660101938 432751564 802165583 94609212 959118901 899106322 511263335 720799698 525271559 97437018 ...

output:

736096339354

result:

ok "736096339354"

Test #20:

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

input:

531
900911435 785026468 874062332 503718217 611536645 239657973 325972263 385032341 870318373 929766891 427371238 569339675 778520113 405848303 684357246 69811787 800624444 926302836 189057322 284355118 436240137 378803298 331749551 847156045 335068705 797602501 712309733 642092330 540455732 6573943...

output:

432979643757

result:

ok "432979643757"

Test #21:

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

input:

903
638025025 900745704 147077602 179570714 830457760 710730120 937082226 969647108 679280493 644178399 167545643 588552281 488500282 394248690 76931608 204380162 117289358 965985380 339910340 566583360 624040722 608048186 664927853 482569705 577030636 117749400 107985090 281717512 698515969 7385346...

output:

736580095059

result:

ok "736580095059"

Test #22:

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

input:

789
976020861 428764814 368851390 573756261 919903597 11238203 975650305 643289467 259642644 127147004 213467463 376218328 909573525 339885102 142408294 85672677 12888622 796963431 708870075 813810389 387860180 79434792 399454130 591682388 482867683 216437765 905951757 672122669 601714663 517847318 ...

output:

633361476791

result:

ok "633361476791"

Test #23:

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

input:

957
40295710 792649165 139711991 939798163 445493453 206720902 803400892 455352928 558684812 802926456 229766811 515186768 89936669 810841815 960902667 814090426 799466342 899364135 549367536 114228872 354267917 282469712 455839487 146347337 790908741 953168477 748328143 413112342 364501243 47528803...

output:

817311141016

result:

ok "817311141016"

Test #24:

score: -100
Runtime Error

input:

33343
178524003 418255159 900472279 920324341 640223266 265618369 703159090 392316189 883392233 545066497 841110397 731336002 441523606 57503834 99288485 146765273 298966328 689082540 30933106 201661565 596719586 317442009 898457712 347493300 238115084 164432200 874273535 832181568 988353885 4777356...

output:


result: