QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#616430 | #9445. Peace with Magic | ucup-team1645# | AC ✓ | 6ms | 2432kb | C++14 | 824b | 2024-10-06 05:20:40 | 2024-10-06 05:20:41 |
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: 2428kb
input:
4 2 3 1
output:
4
result:
ok 1 number(s): "4"
Test #2:
score: 0
Accepted
time: 0ms
memory: 2404kb
input:
3 0 0
output:
0
result:
ok 1 number(s): "0"
Test #3:
score: 0
Accepted
time: 0ms
memory: 2432kb
input:
10 1 9 5 6 2 7 1 4 8
output:
22
result:
ok 1 number(s): "22"
Test #4:
score: 0
Accepted
time: 0ms
memory: 2364kb
input:
2 0
output:
0
result:
ok 1 number(s): "0"
Test #5:
score: 0
Accepted
time: 0ms
memory: 2416kb
input:
2 983
output:
983
result:
ok 1 number(s): "983"
Test #6:
score: 0
Accepted
time: 0ms
memory: 2308kb
input:
3 792 467
output:
792
result:
ok 1 number(s): "792"
Test #7:
score: 0
Accepted
time: 0ms
memory: 2380kb
input:
3 422 877
output:
877
result:
ok 1 number(s): "877"
Test #8:
score: 0
Accepted
time: 0ms
memory: 2428kb
input:
3 7 551
output:
551
result:
ok 1 number(s): "551"
Test #9:
score: 0
Accepted
time: 0ms
memory: 2372kb
input:
4 612 569 745
output:
1181
result:
ok 1 number(s): "1181"
Test #10:
score: 0
Accepted
time: 0ms
memory: 2400kb
input:
4 145 541 181
output:
686
result:
ok 1 number(s): "686"
Test #11:
score: 0
Accepted
time: 0ms
memory: 2380kb
input:
4 698 148 155
output:
698
result:
ok 1 number(s): "698"
Test #12:
score: 0
Accepted
time: 0ms
memory: 2376kb
input:
5 907 481 522 380
output:
1383
result:
ok 1 number(s): "1383"
Test #13:
score: 0
Accepted
time: 0ms
memory: 2304kb
input:
5 946 999 110 734
output:
1733
result:
ok 1 number(s): "1733"
Test #14:
score: 0
Accepted
time: 0ms
memory: 2364kb
input:
5 797 16 242 866
output:
1039
result:
ok 1 number(s): "1039"
Test #15:
score: 0
Accepted
time: 0ms
memory: 2388kb
input:
12 827 522 284 492 107 375 61 3 706 948 439
output:
2384
result:
ok 1 number(s): "2384"
Test #16:
score: 0
Accepted
time: 0ms
memory: 2312kb
input:
17 396 846 4 667 850 422 580 835 773 701 13 581 244 951 545 838
output:
4623
result:
ok 1 number(s): "4623"
Test #17:
score: 0
Accepted
time: 1ms
memory: 2372kb
input:
31 565 95 957 616 656 763 54 461 884 283 680 151 778 78 717 579 764 838 261 812 1 942 409 796 500 216 421 90 117 793
output:
7639
result:
ok 1 number(s): "7639"
Test #18:
score: 0
Accepted
time: 1ms
memory: 2388kb
input:
36 944 797 369 251 665 710 681 648 257 650 703 243 145 865 417 965 632 501 385 94 928 993 449 148 217 433 824 998 456 224 34 854 609 487 610
output:
9593
result:
ok 1 number(s): "9593"
Test #19:
score: 0
Accepted
time: 0ms
memory: 2380kb
input:
44 120 593 217 73 73 411 181 520 989 386 203 869 774 39 622 688 501 309 817 426 785 958 851 715 988 452 187 722 315 674 251 178 690 582 624 882 687 329 275 200 101 3 734
output:
10497
result:
ok 1 number(s): "10497"
Test #20:
score: 0
Accepted
time: 2ms
memory: 2408kb
input:
51 988 151 816 857 500 716 321 7 257 551 133 362 228 546 316 577 401 456 361 677 523 274 816 490 50 293 184 497 707 963 749 574 872 373 959 694 28 288 901 159 504 930 102 673 873 529 677 220 332 995
output:
12725
result:
ok 1 number(s): "12725"
Test #21:
score: 0
Accepted
time: 2ms
memory: 2380kb
input:
62 553 304 683 986 174 55 331 462 966 807 300 649 692 158 913 366 596 554 437 178 34 952 743 798 850 272 736 878 611 629 780 879 218 597 640 985 591 739 608 764 30 673 904 601 828 873 221 284 727 605 952 438 424 555 668 41 694 954 99 327 48
output:
17207
result:
ok 1 number(s): "17207"
Test #22:
score: 0
Accepted
time: 3ms
memory: 2316kb
input:
76 92 162 691 532 707 276 570 431 668 359 48 410 805 200 987 192 494 960 783 553 869 16 468 834 600 300 523 412 720 384 62 934 824 27 35 726 416 548 537 950 735 183 602 707 699 656 693 490 111 48 518 168 610 345 233 354 776 584 800 86 250 200 552 949 642 485 61 61 293 524 906 293 690 820 753
output:
18491
result:
ok 1 number(s): "18491"
Test #23:
score: 0
Accepted
time: 3ms
memory: 2412kb
input:
83 497 106 510 280 11 316 175 278 313 243 530 292 538 136 910 438 646 256 607 46 944 121 122 476 367 200 302 168 931 562 928 385 430 89 173 462 689 4 609 831 664 170 800 531 639 614 592 824 951 654 422 442 287 415 908 630 130 318 263 742 423 223 172 711 780 324 225 94 913 350 676 222 713 560 273 540...
output:
18896
result:
ok 1 number(s): "18896"
Test #24:
score: 0
Accepted
time: 4ms
memory: 2320kb
input:
93 517 95 767 354 232 175 296 273 765 193 224 533 87 613 247 688 985 73 989 702 924 552 985 814 243 45 181 873 593 314 492 765 255 630 415 546 508 996 896 772 136 955 250 493 947 623 147 625 268 800 777 690 981 759 761 215 605 863 497 246 785 641 951 92 362 146 634 578 135 556 508 119 94 566 966 391...
output:
23746
result:
ok 1 number(s): "23746"
Test #25:
score: 0
Accepted
time: 2ms
memory: 2420kb
input:
100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
output:
0
result:
ok 1 number(s): "0"
Test #26:
score: 0
Accepted
time: 0ms
memory: 2416kb
input:
94 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
output:
0
result:
ok 1 number(s): "0"
Test #27:
score: 0
Accepted
time: 1ms
memory: 2356kb
input:
84 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
output:
0
result:
ok 1 number(s): "0"
Test #28:
score: 0
Accepted
time: 4ms
memory: 2368kb
input:
100 330 197 509 338 647 398 119 422 79 540 621 324 541 848 446 64 645 427 830 615 492 349 533 68 753 513 661 572 553 47 982 551 294 173 299 928 518 114 919 111 27 325 731 954 22 215 371 39 32 615 831 16 445 330 703 262 125 494 214 680 288 797 836 575 39 412 295 662 741 45 217 30 832 437 587 392 936 ...
output:
22296
result:
ok 1 number(s): "22296"
Test #29:
score: 0
Accepted
time: 4ms
memory: 2392kb
input:
100 286 670 646 674 701 74 533 289 518 239 704 495 395 862 190 288 984 719 807 315 224 291 313 454 26 339 763 250 782 223 954 126 808 285 612 362 475 422 659 82 121 824 920 382 545 911 6 363 235 281 542 134 393 823 296 118 790 950 627 623 569 631 800 892 376 376 277 465 62 44 625 586 170 7 688 748 7...
output:
24057
result:
ok 1 number(s): "24057"
Test #30:
score: 0
Accepted
time: 3ms
memory: 2392kb
input:
100 999 260 291 436 713 420 13 53 417 689 50 52 282 448 700 628 916 196 760 559 166 271 288 378 21 98 481 443 723 296 106 742 460 486 145 362 593 43 69 169 330 895 873 620 304 572 75 188 930 3 579 901 540 175 512 380 721 184 205 449 432 435 255 420 698 342 747 434 842 756 265 354 226 893 122 493 94 ...
output:
22594
result:
ok 1 number(s): "22594"
Test #31:
score: 0
Accepted
time: 4ms
memory: 2432kb
input:
100 844 533 138 36 290 714 622 898 441 567 926 867 209 457 641 704 406 700 423 856 65 778 980 22 413 342 927 490 54 853 248 986 133 355 627 123 488 251 184 860 855 649 932 538 599 713 594 379 324 290 613 342 902 33 286 732 800 785 611 316 767 819 577 927 764 544 271 93 159 43 354 713 690 895 582 438...
output:
26708
result:
ok 1 number(s): "26708"
Test #32:
score: 0
Accepted
time: 4ms
memory: 2352kb
input:
100 357 860 465 837 821 619 881 709 750 395 237 212 677 135 931 94 611 90 775 442 145 451 778 825 162 950 371 185 970 337 905 127 764 235 227 561 723 149 721 97 100 838 910 900 448 802 99 438 117 646 369 786 187 151 673 77 102 801 96 877 412 777 382 302 509 869 271 651 120 342 917 997 681 308 999 55...
output:
25630
result:
ok 1 number(s): "25630"
Test #33:
score: 0
Accepted
time: 4ms
memory: 2312kb
input:
100 592 997 61 612 744 86 288 921 105 32 751 35 215 812 146 413 945 370 322 220 164 877 665 604 128 869 586 586 80 434 992 914 491 532 871 636 81 105 54 456 62 876 526 596 466 40 694 202 381 765 478 615 620 794 801 849 769 494 889 75 589 888 490 654 553 540 204 145 450 834 885 815 812 402 848 647 85...
output:
26016
result:
ok 1 number(s): "26016"
Test #34:
score: 0
Accepted
time: 4ms
memory: 2392kb
input:
100 188 720 653 129 664 905 303 992 365 867 945 827 792 770 499 321 95 21 992 29 328 559 301 301 54 235 766 503 425 265 960 712 371 198 459 227 296 433 912 252 850 118 234 529 958 936 374 46 481 593 302 250 429 890 908 331 983 475 655 779 281 776 77 754 225 553 878 650 441 394 362 685 46 920 765 142...
output:
23373
result:
ok 1 number(s): "23373"
Test #35:
score: 0
Accepted
time: 4ms
memory: 2320kb
input:
100 920 677 778 558 651 568 567 493 542 122 131 906 815 638 545 419 425 591 481 804 679 843 724 791 565 622 400 943 443 154 696 751 614 164 556 881 789 311 335 45 613 818 523 425 446 611 172 154 41 607 30 714 791 798 756 473 267 526 352 517 955 232 292 9 831 281 45 703 884 664 178 793 615 561 143 52...
output:
26620
result:
ok 1 number(s): "26620"
Test #36:
score: 0
Accepted
time: 4ms
memory: 2404kb
input:
100 827 274 85 663 280 413 190 295 199 533 406 802 697 498 839 937 788 690 395 746 834 795 704 148 14 947 868 666 120 86 344 863 436 267 989 922 963 2 294 189 950 990 799 972 14 539 763 912 820 950 271 917 37 967 956 686 940 389 649 808 485 638 363 624 773 708 733 495 101 654 126 543 135 92 228 559 ...
output:
27101
result:
ok 1 number(s): "27101"
Test #37:
score: 0
Accepted
time: 4ms
memory: 2420kb
input:
100 438 849 789 341 444 704 131 62 766 640 853 777 915 911 45 426 979 933 103 7 552 597 438 876 12 129 440 641 216 277 37 296 381 555 365 653 561 777 741 930 28 973 87 974 53 707 661 329 323 560 949 144 843 882 304 269 843 462 348 586 838 937 810 581 833 774 19 725 220 506 923 330 338 934 890 658 44...
output:
26972
result:
ok 1 number(s): "26972"
Test #38:
score: 0
Accepted
time: 2ms
memory: 2316kb
input:
100 9 6 7 3 9 9 4 9 3 4 1 1 0 2 9 6 6 6 1 0 2 6 5 2 8 1 0 9 5 6 5 1 4 3 3 1 5 5 3 9 8 3 8 9 5 8 9 3 1 7 3 3 6 8 5 6 9 7 2 6 7 0 4 6 9 5 4 4 2 0 9 3 4 4 9 4 5 6 9 3 2 5 8 4 8 9 9 1 5 8 2 1 5 9 5 1 0 9 9
output:
246
result:
ok 1 number(s): "246"
Test #39:
score: 0
Accepted
time: 2ms
memory: 2392kb
input:
100 6 4 2 9 7 5 8 8 6 6 3 8 3 5 0 5 3 9 2 5 6 9 3 3 4 2 3 2 6 6 5 2 4 5 9 0 0 0 3 7 6 1 2 1 8 8 9 7 1 3 4 5 5 9 4 6 1 1 2 5 6 7 0 6 5 6 7 0 4 2 6 7 9 0 3 3 7 9 8 9 6 7 4 4 8 3 0 1 8 1 2 6 5 7 5 2 9 5 9
output:
234
result:
ok 1 number(s): "234"
Test #40:
score: 0
Accepted
time: 2ms
memory: 2408kb
input:
100 0 6 1 6 3 1 0 4 2 6 6 9 1 6 5 3 7 8 7 3 3 6 5 1 7 7 1 4 0 7 2 4 8 6 2 0 5 9 8 8 8 3 9 0 9 0 2 9 7 8 1 1 9 2 4 0 2 3 9 0 1 2 2 8 0 3 1 5 0 8 4 3 7 6 5 3 7 5 9 3 8 7 1 6 0 2 0 1 3 4 7 6 9 6 4 3 9 7 0
output:
214
result:
ok 1 number(s): "214"
Test #41:
score: 0
Accepted
time: 2ms
memory: 2388kb
input:
100 2 1 8 4 4 8 9 6 0 5 9 7 1 9 7 9 8 1 0 8 4 0 3 2 7 2 5 2 4 7 6 9 5 2 0 6 4 3 6 8 5 1 0 8 8 2 3 9 7 4 1 8 2 2 3 3 9 8 4 2 6 6 1 3 7 4 6 4 6 1 1 6 6 0 2 3 2 7 1 0 6 7 4 5 2 9 5 4 6 8 4 6 8 8 6 3 7 4 5
output:
230
result:
ok 1 number(s): "230"
Test #42:
score: 0
Accepted
time: 2ms
memory: 2412kb
input:
100 0 0 6 2 1 5 1 5 2 0 2 8 3 0 8 6 3 1 4 9 2 3 5 1 0 8 5 9 6 4 4 0 2 6 3 9 6 4 9 3 1 4 3 2 8 0 0 8 0 5 4 9 4 3 6 7 3 2 8 7 3 0 4 3 5 6 2 3 8 2 7 0 8 2 6 3 3 8 0 7 8 5 0 2 1 2 3 4 2 2 9 1 3 0 3 2 5 8 1
output:
190
result:
ok 1 number(s): "190"
Test #43:
score: 0
Accepted
time: 6ms
memory: 2420kb
input:
100 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1...
output:
50000
result:
ok 1 number(s): "50000"
Test #44:
score: 0
Accepted
time: 6ms
memory: 2404kb
input:
100 999 999 1000 999 998 998 1000 999 998 1000 999 998 998 1000 1000 999 998 1000 1000 1000 998 999 999 1000 998 1000 999 1000 1000 1000 1000 999 1000 998 999 998 998 999 998 1000 998 998 999 999 1000 998 1000 999 1000 999 998 1000 1000 1000 999 999 998 998 998 999 998 1000 998 999 998 1000 998 998 ...
output:
49916
result:
ok 1 number(s): "49916"
Test #45:
score: 0
Accepted
time: 6ms
memory: 2400kb
input:
100 999 996 999 996 996 999 997 998 996 997 996 998 997 996 1000 999 996 1000 1000 996 996 998 997 998 997 996 996 996 998 996 999 996 999 999 997 996 1000 1000 998 998 1000 996 997 997 999 999 1000 996 999 998 999 997 1000 998 999 996 996 998 997 997 996 996 1000 997 998 1000 1000 996 996 999 997 9...
output:
49822
result:
ok 1 number(s): "49822"
Test #46:
score: 0
Accepted
time: 6ms
memory: 2368kb
input:
100 994 996 995 995 1000 999 996 994 998 1000 1000 996 996 1000 994 998 1000 997 995 999 995 1000 1000 994 999 994 994 997 994 998 997 1000 995 999 1000 995 995 994 994 998 998 1000 994 994 996 994 995 997 999 998 994 999 996 1000 999 1000 995 997 997 999 996 998 998 994 1000 994 997 999 999 1000 99...
output:
49750
result:
ok 1 number(s): "49750"
Test #47:
score: 0
Accepted
time: 6ms
memory: 2404kb
input:
100 1000 994 998 994 994 997 998 999 996 994 994 993 996 994 1000 1000 993 999 1000 997 996 995 993 993 998 993 998 1000 997 992 997 1000 993 992 992 998 998 993 997 998 994 998 995 1000 1000 999 997 998 998 993 998 996 994 999 997 1000 995 997 997 994 994 1000 1000 993 999 998 997 992 1000 1000 998...
output:
49717
result:
ok 1 number(s): "49717"
Test #48:
score: 0
Accepted
time: 3ms
memory: 2312kb
input:
100 17 42 42 43 50 54 55 64 73 80 111 117 135 144 158 164 164 165 171 174 178 185 208 210 218 235 242 250 256 270 285 290 292 294 296 305 306 312 315 317 320 327 333 359 361 371 376 390 397 433 440 441 442 447 451 482 495 500 506 517 531 578 608 628 648 654 655 669 680 692 707 715 716 727 736 736 75...
output:
23318
result:
ok 1 number(s): "23318"
Test #49:
score: 0
Accepted
time: 0ms
memory: 2316kb
input:
100 5 17 48 78 99 110 110 121 123 127 128 131 138 146 153 161 168 184 190 192 244 264 269 274 277 278 285 299 300 309 309 321 321 331 339 345 350 374 374 380 380 391 394 442 447 457 464 491 496 524 541 548 551 555 569 583 597 605 633 643 649 656 683 705 712 716 725 736 750 772 774 786 789 795 813 82...
output:
25994
result:
ok 1 number(s): "25994"
Test #50:
score: 0
Accepted
time: 3ms
memory: 2424kb
input:
100 15 23 38 42 56 59 64 83 89 131 132 137 141 146 147 157 161 169 201 202 213 215 223 231 238 241 265 294 297 331 356 361 387 408 410 412 415 418 418 437 451 458 465 505 515 528 534 539 569 597 600 603 631 641 643 653 660 671 674 683 686 701 715 723 723 724 736 740 741 750 755 756 762 763 764 774 7...
output:
26489
result:
ok 1 number(s): "26489"
Test #51:
score: 0
Accepted
time: 5ms
memory: 2332kb
input:
100 1000 973 971 957 956 956 949 921 914 908 902 888 864 857 807 805 803 798 791 782 768 757 727 719 705 689 672 672 648 634 631 629 626 619 608 608 602 569 563 561 554 554 538 531 528 519 513 491 488 484 456 454 441 436 434 426 425 417 400 393 386 385 367 360 337 322 318 316 303 293 285 273 235 233...
output:
23935
result:
ok 1 number(s): "23935"
Test #52:
score: 0
Accepted
time: 5ms
memory: 2384kb
input:
100 972 971 967 963 961 959 945 937 927 897 884 852 847 830 830 824 819 819 816 801 800 793 791 783 772 767 764 751 728 727 719 717 689 677 653 640 635 634 627 621 615 609 583 550 540 532 529 528 522 512 491 484 477 419 418 397 395 394 384 384 381 372 371 366 362 354 351 350 347 343 341 319 306 305 ...
output:
25139
result:
ok 1 number(s): "25139"
Test #53:
score: 0
Accepted
time: 2ms
memory: 2408kb
input:
100 958 928 921 909 873 856 819 789 779 772 720 651 651 648 634 621 563 550 512 481 471 445 416 374 332 327 293 291 278 254 251 244 239 237 217 215 175 144 121 102 100 80 55 41 40 35 31 30 12 962 960 893 889 847 846 829 783 781 773 753 744 737 694 630 622 610 607 604 603 577 573 565 560 535 534 530 ...
output:
22820
result:
ok 1 number(s): "22820"
Test #54:
score: 0
Accepted
time: 4ms
memory: 2412kb
input:
100 3 38 44 54 68 93 107 117 178 181 194 194 207 229 232 236 256 311 368 433 508 509 514 520 551 579 589 590 609 641 657 675 692 705 707 761 775 815 845 853 859 897 926 928 940 941 946 964 971 967 944 896 831 827 817 816 803 777 745 738 721 688 666 659 642 637 628 624 607 599 586 570 559 513 502 477...
output:
24897
result:
ok 1 number(s): "24897"
Test #55:
score: 0
Accepted
time: 4ms
memory: 2332kb
input:
100 977 973 946 938 921 875 868 843 842 830 821 805 779 777 769 743 651 643 485 473 461 459 421 418 402 383 363 320 317 315 296 282 262 256 247 225 214 160 153 148 115 112 110 105 98 80 66 1 0 13 14 30 71 87 117 156 161 175 177 221 229 249 271 285 309 347 360 368 369 399 411 420 429 508 517 542 567 ...
output:
24146
result:
ok 1 number(s): "24146"
Test #56:
score: 0
Accepted
time: 4ms
memory: 2372kb
input:
100 11 49 88 90 109 179 188 188 278 288 300 323 336 351 354 366 375 402 406 413 467 491 504 526 545 546 553 555 588 592 618 647 658 676 693 748 770 773 777 781 798 856 857 881 940 941 955 980 980 4 43 62 65 81 97 130 133 156 166 202 230 236 286 295 307 338 355 371 382 390 398 416 417 430 467 469 473...
output:
25029
result:
ok 1 number(s): "25029"
Test #57:
score: 0
Accepted
time: 4ms
memory: 2308kb
input:
100 983 949 906 905 890 876 858 854 799 778 751 731 689 627 616 613 603 584 583 576 563 538 480 444 436 431 425 409 391 372 341 322 322 313 306 271 265 232 189 181 167 147 140 123 122 83 80 62 44 999 971 958 941 916 909 900 897 825 807 803 763 743 739 697 690 679 677 675 674 645 608 599 577 571 471 ...
output:
24535
result:
ok 1 number(s): "24535"
Test #58:
score: 0
Accepted
time: 4ms
memory: 2332kb
input:
100 0 32 40 61 120 142 161 165 225 274 309 310 311 313 320 352 386 414 472 473 479 487 512 545 548 549 568 593 603 608 633 646 649 671 698 711 729 746 790 807 866 872 881 891 914 957 967 968 998 986 916 907 907 890 890 847 834 828 816 816 754 753 737 731 729 726 705 704 667 584 577 553 526 513 509 4...
output:
25682
result:
ok 1 number(s): "25682"
Test #59:
score: 0
Accepted
time: 4ms
memory: 2372kb
input:
100 993 988 952 937 932 900 896 890 863 860 845 784 758 727 726 707 705 673 654 651 621 611 597 524 470 405 361 351 343 319 304 258 255 247 246 225 211 210 206 202 180 162 133 104 77 52 40 39 2 23 42 43 43 54 82 93 160 163 175 193 205 217 259 276 356 388 408 412 446 446 456 496 498 520 529 530 530 5...
output:
24612
result:
ok 1 number(s): "24612"
Test #60:
score: 0
Accepted
time: 4ms
memory: 2416kb
input:
100 10 45 130 168 203 206 209 257 289 290 344 374 384 390 412 443 445 482 484 490 503 542 559 577 581 588 600 617 661 692 745 772 787 823 827 829 829 830 856 931 943 945 951 971 972 974 974 989 990 22 32 37 38 55 62 65 102 106 119 193 199 206 232 251 266 286 307 342 386 397 408 419 431 459 474 512 5...
output:
26129
result:
ok 1 number(s): "26129"
Test #61:
score: 0
Accepted
time: 4ms
memory: 2320kb
input:
100 993 967 956 941 916 888 849 776 768 765 740 733 729 729 727 694 675 665 649 633 597 583 582 530 487 430 420 400 397 380 360 342 341 301 298 297 285 277 160 133 131 124 103 102 97 66 60 55 0 982 976 967 965 921 919 916 915 909 904 864 820 755 745 731 726 717 709 691 689 642 635 635 629 590 535 53...
output:
24752
result:
ok 1 number(s): "24752"
Test #62:
score: 0
Accepted
time: 4ms
memory: 2388kb
input:
100 13 13 30 39 100 102 108 179 218 239 250 299 309 385 422 428 446 472 491 516 530 534 534 579 635 645 655 669 709 715 739 739 776 783 823 823 831 833 849 849 854 867 881 896 915 952 954 972 994 996 969 965 956 952 934 928 891 884 866 821 819 775 769 747 740 705 690 687 659 621 618 614 605 586 577 ...
output:
27828
result:
ok 1 number(s): "27828"
Test #63:
score: 0
Accepted
time: 4ms
memory: 2320kb
input:
100 948 904 881 860 785 778 771 769 727 717 703 688 688 645 521 518 507 459 455 437 427 419 391 362 358 316 299 261 237 230 220 218 218 214 206 152 148 142 141 93 76 71 63 31 17 14 11 8 2 40 43 67 83 93 178 204 208 252 254 263 265 278 279 311 325 381 410 427 459 465 476 477 499 500 504 540 563 568 5...
output:
22149
result:
ok 1 number(s): "22149"
Test #64:
score: 0
Accepted
time: 1ms
memory: 2360kb
input:
100 51 56 68 88 103 110 123 129 177 177 179 191 281 288 289 315 321 324 335 384 415 418 467 478 501 539 574 590 664 683 687 703 726 745 753 769 797 834 836 842 849 875 899 900 913 921 959 991 995 33 44 59 82 95 102 104 135 136 143 187 200 202 210 287 297 323 326 359 372 374 393 400 411 437 438 458 4...
output:
23948
result:
ok 1 number(s): "23948"
Extra Test:
score: 0
Extra Test Passed