QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#378598#3697. Carriesucup-team1383AC ✓54ms5280kbC++17759b2024-04-06 13:43:302024-04-06 13:43:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
5 5

output:

1

result:

ok 1 number(s): "1"

Test #2:

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

input:

10
0 1 2 3 4 5 6 7 8 9

output:

20

result:

ok 1 number(s): "20"

Test #3:

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

input:

2
0 0

output:

0

result:

ok 1 number(s): "0"

Test #4:

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

input:

100
37 776 955 76 445 994 346 295 403 919 179 311 255 525 343 947 914 84 501 346 327 240 30 909 229 393 693 183 61 235 404 586 588 123 174 970 785 616 513 47 72 663 451 466 823 305 547 444 396 646 230 749 394 35 541 891 46 246 473 628 142 843 566 586 474 298 687 863 680 203 137 709 467 11 419 99 569...

output:

6824

result:

ok 1 number(s): "6824"

Test #5:

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

input:

100
619379 226824 483668 995714 798316 991831 856792 921686 821618 748406 115448 297417 832870 210865 417997 67213 895548 129190 62099 38718 966952 486663 809789 451119 920862 681112 83097 6600 122519 258718 585803 8271 477665 96798 522008 455918 26175 159108 637107 983420 953709 704110 399698 53740...

output:

14904

result:

ok 1 number(s): "14904"

Test #6:

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

input:

100
272435300 449047089 523450083 12164008 117235540 66229925 555815212 774319195 266422467 356912215 74776190 851490859 294901630 505210017 568036643 636261283 628933759 860651261 542137639 349424390 661102274 521435398 731792510 575219052 778199431 473370132 644829071 189062804 345515331 74527852 ...

output:

21788

result:

ok 1 number(s): "21788"

Test #7:

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

input:

1000
34 312 281 288 892 683 725 345 297 378 286 446 53 559 380 523 764 205 545 952 712 346 639 413 739 535 597 417 750 750 316 804 803 834 816 548 627 434 443 686 274 157 936 278 870 528 705 173 816 464 873 202 447 796 407 657 903 1 275 339 667 354 673 498 853 41 235 730 549 380 369 331 20 713 764 9...

output:

732657

result:

ok 1 number(s): "732657"

Test #8:

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

input:

1000
980279 579888 983614 846692 367945 236130 936988 959006 774829 460149 527373 767559 737310 24970 959350 806053 370066 990112 683636 833984 300901 56791 718793 720335 109522 276989 687180 872813 166128 212096 704083 784500 243515 95297 92921 692775 154342 22615 911300 595039 287397 586706 908406...

output:

1517742

result:

ok 1 number(s): "1517742"

Test #9:

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

input:

1000
537429850 984782041 634502527 431272316 901374437 481533217 15228440 119028105 854655156 793533264 945431802 144328429 103827905 153613796 937721079 824045526 128230667 300875340 417523300 968664808 478355741 282796049 777030427 654608937 163543619 260679200 482765553 791647577 273477678 107751...

output:

2194577

result:

ok 1 number(s): "2194577"

Test #10:

score: 0
Accepted
time: 38ms
memory: 5228kb

input:

100000
120 586 390 177 638 285 651 160 191 45 901 109 237 362 200 696 202 810 91 884 124 663 657 100 176 765 933 898 35 35 641 723 822 408 935 566 270 184 646 990 1 359 893 659 905 304 481 419 862 622 267 933 727 327 503 121 543 405 357 258 140 662 438 385 477 645 39 52 179 512 224 916 660 390 774 2...

output:

7238962180

result:

ok 1 number(s): "7238962180"

Test #11:

score: 0
Accepted
time: 54ms
memory: 5236kb

input:

100000
851412 59519 986478 560060 810787 261011 948018 64254 595746 247418 874285 388733 408507 432217 363956 467014 48554 98990 569362 845287 34108 111313 679336 72363 61762 468493 670964 271233 641051 587549 120910 914877 577712 850811 886379 943941 408550 687233 337856 225594 620384 6203 193469 4...

output:

14746315608

result:

ok 1 number(s): "14746315608"

Test #12:

score: 0
Accepted
time: 54ms
memory: 5280kb

input:

100000
639994772 631896920 810448629 18585883 704978274 35920990 104376802 414896984 543025116 664827915 761396627 402799706 942101849 375564252 711526973 787935195 381487053 66749155 898653750 889826564 355490486 875831510 666365409 15279330 358197426 923838613 460508724 652405900 508721901 5735727...

output:

22190773723

result:

ok 1 number(s): "22190773723"