QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#874955 | #9998. 检查站 | ZhangYiDe | AC ✓ | 410ms | 14332kb | C++11 | 1.5kb | 2025-01-28 21:40:05 | 2025-01-28 21:40:07 |
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: 21ms
memory: 12412kb
input:
995 49964 996 255 741 309 637 995 894 1 1 563 995 587 1 995 82 449 1 995 659 364 828 405 405 995 203 934 697 995 462 672 876 301 12 995 124 661 995 579 995 48 655 1 134 995 486 136 967 325 1 620 1 812 1 1 369 496 347 349 58 995 627 995 995 995 656 130 350 197 995 332 206 712 995 119 634 11 1 995 31 ...
output:
55
result:
ok single line: '55'
Test #2:
score: 0
Accepted
time: 25ms
memory: 12028kb
input:
990 49980 992 1 303 514 787 430 9 135 157 737 949 738 627 375 304 685 564 420 443 787 990 51 1 745 855 990 291 918 674 685 1 782 667 356 502 82 399 872 1 387 990 886 202 990 192 900 213 416 570 923 36 21 896 186 915 747 699 990 717 1 362 340 587 485 918 990 1 401 990 756 141 684 416 649 359 711 990 ...
output:
481
result:
ok single line: '481'
Test #3:
score: 0
Accepted
time: 19ms
memory: 13964kb
input:
997 49990 998 890 314 997 506 853 279 104 996 586 796 812 283 822 76 812 472 966 543 60 98 329 997 306 111 524 997 997 182 249 942 709 72 997 792 384 958 255 776 641 155 742 808 359 708 577 997 545 636 323 411 510 463 873 606 997 918 106 99 737 590 226 403 816 621 744 874 537 660 802 252 788 997 334...
output:
485
result:
ok single line: '485'
Test #4:
score: 0
Accepted
time: 18ms
memory: 11896kb
input:
993 49992 990 993 831 467 1 659 1 993 574 1 1 451 993 155 359 993 993 250 369 273 835 1 114 845 597 831 981 547 993 370 993 641 51 549 505 804 953 678 247 873 993 1 865 681 105 993 899 63 845 993 32 525 578 993 797 633 667 993 116 1 526 449 601 278 486 854 993 8 631 993 1 337 1 993 214 101 944 278 1...
output:
458
result:
ok single line: '458'
Test #5:
score: 0
Accepted
time: 27ms
memory: 12672kb
input:
991 49987 995 527 567 680 128 934 514 745 88 738 347 1 354 737 820 162 930 1 673 484 198 590 37 186 105 599 855 673 1 508 773 765 267 622 8 98 725 290 791 1 323 329 830 638 401 73 578 646 552 372 320 66 835 729 174 256 445 1 569 30 603 229 28 1 881 186 26 225 459 463 137 525 73 238 357 663 932 333 3...
output:
466
result:
ok single line: '466'
Test #6:
score: 0
Accepted
time: 9ms
memory: 12304kb
input:
996 49952 9990 996 1 1 996 1 996 1 1 996 996 1 996 1 996 1 996 1 996 1 1 1 996 996 1 1 996 996 1 996 996 996 996 1 996 1 996 996 996 1 1 996 996 1 1 1 996 996 996 1 996 1 996 996 1 1 1 1 996 996 1 996 996 996 1 1 996 996 1 996 996 1 996 996 996 1 1 996 1 1 996 996 1 1 996 1 996 1 1 996 996 1 996 996...
output:
9919
result:
ok single line: '9919'
Test #7:
score: 0
Accepted
time: 47ms
memory: 12808kb
input:
994 49993 9992 1 1 504 994 559 149 486 842 485 406 180 994 1 908 763 136 1 214 672 994 947 867 1 982 4 1 833 1 1 542 589 1 620 837 1 611 994 319 994 874 1 381 186 789 25 818 580 965 380 504 216 946 1 1 994 35 710 994 1 918 994 433 44 157 24 383 994 994 994 1 480 994 722 284 1 764 361 229 411 598 834...
output:
53
result:
ok single line: '53'
Test #8:
score: 0
Accepted
time: 27ms
memory: 12812kb
input:
1000 49979 10000 1000 1000 610 290 817 778 475 1 15 484 1 405 1000 212 1000 360 1000 710 761 153 1000 1000 807 978 457 514 1 1000 1000 886 673 315 900 628 1 910 150 124 870 1 781 910 641 44 206 155 888 1 508 516 26 1 1 469 515 444 32 547 237 601 305 1 1000 1000 451 874 433 1 887 1 693 276 1 805 359 ...
output:
3709
result:
ok single line: '3709'
Test #9:
score: 0
Accepted
time: 31ms
memory: 12172kb
input:
995 49998 9996 1 2 995 358 247 92 137 485 830 643 92 430 927 520 97 958 1 695 703 54 610 345 789 796 61 616 271 874 738 553 976 15 928 818 286 789 341 242 706 194 560 258 250 179 780 426 97 58 484 20 792 282 137 617 351 90 709 82 377 254 420 17 939 271 164 344 446 705 850 760 330 866 214 87 517 207 ...
output:
46
result:
ok single line: '46'
Test #10:
score: 0
Accepted
time: 21ms
memory: 12172kb
input:
990 49983 9992 531 990 990 887 990 977 174 990 716 902 990 1 461 990 717 613 808 421 990 748 990 778 658 497 663 990 990 730 977 990 990 471 1 332 628 990 156 990 990 990 173 919 140 908 338 396 293 930 605 176 990 804 437 622 57 990 23 990 107 769 99 921 209 990 990 1 305 124 990 364 111 733 294 1 ...
output:
3240
result:
ok single line: '3240'
Test #11:
score: 0
Accepted
time: 32ms
memory: 13960kb
input:
991 49991 49994 732 129 319 872 1 805 915 268 176 991 464 728 315 870 312 498 1 878 991 971 549 57 894 312 568 991 254 622 942 696 517 534 1 991 585 991 185 628 844 785 432 162 527 991 665 991 700 132 918 436 870 1 944 332 225 896 991 358 522 1 1 174 991 231 991 991 991 753 434 234 664 897 171 812 8...
output:
7421
result:
ok single line: '7421'
Test #12:
score: 0
Accepted
time: 43ms
memory: 13936kb
input:
995 49975 49997 599 1 772 251 244 307 221 995 995 188 338 118 421 874 127 1 358 46 739 648 1 895 714 29 299 1 1 995 10 174 238 89 147 584 617 995 833 1 995 362 426 924 214 291 783 908 177 883 3 534 975 741 995 979 415 235 144 364 387 1 120 290 70 647 995 429 575 661 995 1 750 752 521 364 409 995 854...
output:
8232
result:
ok single line: '8232'
Test #13:
score: 0
Accepted
time: 39ms
memory: 14136kb
input:
1000 49977 49995 754 441 1 580 873 151 1 746 757 1 836 73 533 116 606 1 536 958 961 542 1000 38 1 1000 332 559 767 1000 599 43 598 961 1 373 385 660 553 969 397 451 641 152 519 655 183 1 495 879 195 536 162 202 958 953 1000 5 458 101 1000 781 292 968 1 356 1 574 1 1000 1 90 297 169 1 1 123 533 653 1...
output:
7238
result:
ok single line: '7238'
Test #14:
score: 0
Accepted
time: 15ms
memory: 14072kb
input:
993 49968 49990 1 1 1 1 993 1 1 1 993 993 993 993 1 993 1 1 993 1 1 1 1 993 1 1 1 1 993 1 1 1 993 993 993 1 1 1 1 1 993 993 1 1 993 1 1 993 1 993 1 993 993 1 993 993 993 1 993 993 1 993 993 993 1 1 993 993 993 1 1 993 993 1 993 993 993 993 993 993 993 1 993 1 993 993 993 1 993 993 993 1 1 993 1 1 99...
output:
31510
result:
ok single line: '31510'
Test #15:
score: 0
Accepted
time: 34ms
memory: 13840kb
input:
992 49974 49996 406 383 589 646 710 162 8 138 801 992 792 658 875 130 582 504 50 295 988 524 387 176 992 649 992 863 778 992 684 757 518 992 938 992 645 1 215 67 992 992 876 614 992 992 972 992 638 1 728 638 1 50 589 58 620 596 866 234 83 213 992 992 55 75 186 504 316 619 579 446 586 66 992 760 992 ...
output:
6266
result:
ok single line: '6266'
Test #16:
score: 0
Accepted
time: 13ms
memory: 12796kb
input:
9994 49980 997 9994 1 9994 9994 9994 1 9994 1 1 9994 9994 1 9994 9994 1 9994 9994 9994 9994 9994 1 9994 1 9994 9994 1 1 1 9994 9994 9994 1 9994 9994 1 1 1 9994 1 9994 9994 1 1 1 9994 1 9994 1 1 9994 9994 1 9994 9994 9994 1 1 1 1 1 1 1 1 1 9994 1 9994 9994 1 9994 9994 1 9994 1 9994 9994 1 1 9994 9994...
output:
997
result:
ok single line: '997'
Test #17:
score: 0
Accepted
time: 37ms
memory: 12356kb
input:
9992 49990 996 1881 4868 4038 9653 5947 8936 8015 7051 8866 7264 4322 4205 9544 2217 9992 327 6754 3193 5121 9065 165 1 2819 4229 7386 4616 6871 1 1 8459 3288 9992 4893 1876 3496 6451 6329 2136 6096 9431 3841 1504 1186 1 1541 4855 7067 1 5573 5128 740 8452 6351 8491 2815 3114 6306 726 9464 9992 1762...
output:
308
result:
ok single line: '308'
Test #18:
score: 0
Accepted
time: 30ms
memory: 11848kb
input:
9991 49997 997 9991 4546 5498 9991 4603 7597 2914 4094 6645 1 4590 1 7253 9362 1 8262 9991 9991 9991 9991 2920 1919 4865 1443 1 9991 6528 8014 8178 9991 1 9888 8590 1 2409 9991 3272 4134 1 79 1 9991 1 7452 3861 7185 2104 6339 7983 1816 6042 8205 548 7240 7696 1 4566 9991 5363 4842 1385 1 9991 4133 1...
output:
343
result:
ok single line: '343'
Test #19:
score: 0
Accepted
time: 14ms
memory: 10876kb
input:
9995 49970 1000 9995 9995 1 1 9995 1 1 1 9995 9995 9995 9995 9995 1 1 9995 9995 1 9995 9995 1 9995 1 9995 9995 9995 9995 1 9995 1 1 9995 9995 9995 9995 1 1 9995 9995 9995 1 9995 9995 1 1 9995 1 1 9995 9995 9995 1 9995 9995 1 9995 1 9995 1 1 1 1 1 1 9995 9995 9995 9995 1 9995 9995 9995 1 1 9995 9995 ...
output:
1000
result:
ok single line: '1000'
Test #20:
score: 0
Accepted
time: 17ms
memory: 11976kb
input:
9998 49998 991 3904 9123 2286 1 1411 9998 3948 7883 2726 7007 7541 1322 1 9998 9998 972 9998 9998 9998 9998 9998 7048 9998 35 5077 217 1 1 1 9998 9998 6600 9998 9998 240 1 6901 9998 9550 2017 9998 3427 9998 3469 5015 7263 1 1924 2548 9254 3995 933 9998 9998 1 4622 4311 8398 2208 9998 9998 1 1 849 17...
output:
378
result:
ok single line: '378'
Test #21:
score: 0
Accepted
time: 65ms
memory: 12108kb
input:
9995 49974 9996 3108 5037 9995 8094 9995 8349 8988 5675 898 4344 5321 1 3277 1161 9995 7954 7784 1 9995 387 6256 9995 9995 9002 8221 9995 1170 1961 2792 9797 1394 2203 9995 1923 627 1 2594 5350 8450 8259 6338 5474 1 1 904 8807 1 2018 4075 1 4039 1842 2083 5133 9995 6492 9488 1 4033 9995 1994 9303 1 ...
output:
2993
result:
ok single line: '2993'
Test #22:
score: 0
Accepted
time: 76ms
memory: 14248kb
input:
9993 49979 9991 715 8500 8917 9585 4746 3484 7044 1 1 1 9396 7451 6724 9993 896 1900 4569 494 5036 6169 8389 8777 9993 4945 8306 4568 1 1480 4743 1 9407 6572 1 8546 9528 3764 763 966 3923 9993 6626 1 2287 2276 2525 9993 511 1 1028 6898 8674 3492 9993 2206 2553 1 9993 5483 6824 945 3865 1 1 238 1 309...
output:
2986
result:
ok single line: '2986'
Test #23:
score: 0
Accepted
time: 48ms
memory: 12348kb
input:
9993 49966 9990 5328 1 9993 9993 1523 4016 9993 5672 1 9993 7537 4141 619 9993 5692 1 7467 9993 7063 9993 9083 4646 616 8466 9993 9043 9993 8267 9993 9391 1262 8272 654 2711 1582 9993 9993 4503 4506 1 1899 7283 9993 7454 9993 9840 9993 7570 1686 1 1 5518 9993 9993 1 475 3666 4160 3118 8515 3086 9993...
output:
2475
result:
ok single line: '2475'
Test #24:
score: 0
Accepted
time: 45ms
memory: 13132kb
input:
9991 49962 9990 944 9991 6956 6987 1410 4626 554 174 1360 9991 3468 9714 5604 1362 988 7141 5906 7713 2242 7472 9553 9991 4390 9991 1799 9991 3297 4407 9991 1732 659 3451 8174 6178 9991 6623 2749 9991 257 9365 9802 1 8233 1948 9991 1625 2861 9914 9589 9991 4821 164 1 9991 928 5241 8218 9991 7040 837...
output:
2397
result:
ok single line: '2397'
Test #25:
score: 0
Accepted
time: 54ms
memory: 12236kb
input:
9994 49978 9995 9994 7588 1207 258 9190 9994 9855 1524 535 1 9994 9049 4047 8083 9058 8155 9466 6576 9994 7395 2951 9994 3109 9994 6135 9994 461 8054 979 6233 1 9994 9994 1054 9880 3325 7195 1 8309 3015 1 9276 9994 9994 4444 9994 4143 9994 764 4094 4878 6654 5066 5720 9149 9994 5322 7174 9994 1 899 ...
output:
2993
result:
ok single line: '2993'
Test #26:
score: 0
Accepted
time: 14ms
memory: 14200kb
input:
9991 49993 49996 9991 9991 9991 1 9991 9991 9991 9991 1 9991 1 9991 1 9991 9991 9991 9991 1 9991 9991 9991 9991 1 1 1 9991 1 1 9991 1 1 1 1 9991 9991 9991 9991 1 1 9991 1 9991 9991 9991 1 1 1 1 9991 1 9991 9991 9991 9991 9991 9991 9991 1 1 9991 1 9991 9991 1 1 9991 1 9991 1 1 9991 9991 9991 1 9991 1...
output:
31547
result:
ok single line: '31547'
Test #27:
score: 0
Accepted
time: 177ms
memory: 13964kb
input:
9992 49953 49993 7587 1193 4530 8841 1 1595 1109 5126 8458 3532 429 1492 5532 2033 6448 7369 1 4583 2149 2104 2933 250 5687 106 1 5905 1 9516 4063 1 365 2431 5975 4687 8836 5345 1626 8982 1 6143 9224 1933 9992 1 9992 1568 2718 1 7070 8410 1642 9211 9665 6845 1 7618 1770 1 1678 4994 5661 7569 7477 95...
output:
6131
result:
ok single line: '6131'
Test #28:
score: 0
Accepted
time: 170ms
memory: 14148kb
input:
9997 49971 49995 4507 9997 6008 1 4946 4230 1 8476 2756 2226 3104 8772 5928 7347 8334 5335 1295 8028 5783 5701 1 9997 9299 9330 5912 2385 2351 8915 1 880 9242 1 1 7804 8389 8524 601 9997 9997 6828 4246 9997 1 8109 2882 1 2109 7678 7297 9997 1673 9997 3763 4345 9997 8142 6900 9997 1 7080 5252 6527 99...
output:
6870
result:
ok single line: '6870'
Test #29:
score: 0
Accepted
time: 128ms
memory: 14012kb
input:
9999 49963 49990 6813 394 409 8843 6343 1 98 4478 9660 4356 3990 2012 6251 685 389 8598 3712 1 8393 3354 9920 1 719 1 9102 2215 1902 2083 2312 8387 3679 7857 8231 3465 2627 171 5845 3617 6307 1 6539 3107 4361 1 4478 9881 4898 7266 1005 153 2878 1 1 9650 1544 1 6846 9607 1 2532 5575 5518 3621 9999 25...
output:
4534
result:
ok single line: '4534'
Test #30:
score: 0
Accepted
time: 410ms
memory: 14020kb
input:
9999 49993 49997 1 7059 483 526 9999 1555 8707 9999 1 9999 9999 9999 9999 9433 9999 5118 9999 6652 7401 2668 2903 90 5810 1792 5936 1311 44 2995 2462 1324 1 9999 9999 9999 1 4196 5139 1 1 12 1747 9999 2717 880 5778 9246 1 9999 1 4608 6629 9999 1 9999 9999 9999 9999 4472 9646 9094 6287 9999 6090 7866...
output:
7711
result:
ok single line: '7711'
Test #31:
score: 0
Accepted
time: 17ms
memory: 12228kb
input:
50000 49998 997 2341 40993 24733 28703 32605 36533 14516 19411 1087 22914 48418 16624 30538 43756 41765 4435 26371 50000 10131 49528 22840 45126 39064 13313 7055 1 25142 50000 34160 1210 8453 34332 42107 34458 17663 1 29769 2671 1 10346 1 27335 4697 32559 38662 50000 44162 20525 49903 1 11859 38652 ...
output:
122
result:
ok single line: '122'
Test #32:
score: 0
Accepted
time: 14ms
memory: 12536kb
input:
49991 49950 994 894 10696 27236 32069 33773 48273 39204 45653 28764 41384 38669 31229 7384 6365 44787 3059 38069 18473 31645 49991 2274 5452 6492 2814 8322 5129 6306 19379 1 31894 38747 2144 22913 49991 2108 41669 19675 1 41259 42918 31603 16800 49947 25872 49991 19518 45957 2667 30193 1 15719 46434...
output:
7
result:
ok single line: '7'
Test #33:
score: 0
Accepted
time: 14ms
memory: 11900kb
input:
49998 49994 1000 49998 49998 1 49998 49998 49998 1 49998 49998 1 49998 1 49998 49998 49998 49998 1 49998 49998 49998 1 49998 49998 1 49998 1 1 49998 49998 49998 1 1 49998 1 1 1 49998 49998 49998 49998 49998 1 1 1 1 1 49998 49998 49998 1 1 49998 49998 1 49998 49998 1 1 1 1 49998 1 49998 1 49998 49998...
output:
1000
result:
ok single line: '1000'
Test #34:
score: 0
Accepted
time: 32ms
memory: 12268kb
input:
49993 49967 992 49993 27212 1 1 49993 8764 35205 1 7811 49993 46284 12996 1 15271 44310 1796 33577 24326 49993 21842 13647 49993 47857 41205 9568 13617 14611 38154 39602 26386 1 6331 42956 49993 42059 7164 38035 44576 43684 1 49993 8163 49993 34744 49993 49838 18924 44160 10473 19799 15370 30978 388...
output:
15
result:
ok single line: '15'
Test #35:
score: 0
Accepted
time: 41ms
memory: 11460kb
input:
49997 49966 993 1 29034 1 1108 15822 15844 25279 1 45958 49997 16876 1 43155 44262 1 17964 1 4170 40150 49997 19872 26939 48456 35749 506 9900 1 1 1800 1 7298 14256 14891 11040 21293 30875 17285 17915 1 49997 12638 49997 1 1 3684 46373 40072 25454 1 47915 3533 12785 32721 49997 49585 1 18331 49997 1...
output:
219
result:
ok single line: '219'
Test #36:
score: 0
Accepted
time: 113ms
memory: 11912kb
input:
49995 49958 9992 1 41296 28754 4934 1 2273 48002 30096 1 1 25523 46282 1 17796 2818 1 43856 49995 14029 6713 27303 28914 1 13554 1 21473 21668 25734 49995 49995 38780 39811 42700 16141 48262 49995 42773 17209 1 37023 678 6592 48136 1 49995 38431 1 1 559 1 1 14625 19766 22205 49995 1 6800 33462 1017 ...
output:
1480
result:
ok single line: '1480'
Test #37:
score: 0
Accepted
time: 67ms
memory: 11724kb
input:
49993 49955 9990 46300 49993 31885 41398 26355 2745 3618 19659 41954 40507 44531 30221 42425 28830 11728 24751 20004 1131 7621 19935 49993 27477 686 49993 7760 43267 40693 25351 31809 503 49993 43030 7660 49198 45532 33015 14313 18073 3657 28678 35851 31709 31847 6150 37494 37626 978 28138 31688 499...
output:
1096
result:
ok single line: '1096'
Test #38:
score: 0
Accepted
time: 57ms
memory: 13316kb
input:
49992 49967 9990 11312 49992 35391 38989 43172 26699 44271 22869 49992 20419 13955 21481 39089 49992 49992 46968 49992 29460 28276 24413 30541 49992 49992 34783 28342 49992 19463 404 49992 16393 12385 8038 1 30350 29330 43710 18041 49992 9253 26068 49992 49992 49992 49992 35631 49992 49937 31599 803...
output:
1112
result:
ok single line: '1112'
Test #39:
score: 0
Accepted
time: 67ms
memory: 12428kb
input:
49999 49950 9998 376 15834 14702 36787 1 46986 8628 37021 32731 25640 11475 20498 49999 18680 23910 4975 5955 36776 39907 28537 30964 19251 15796 11600 42360 25075 36677 1 40780 1 726 26334 18921 1 40994 47090 36064 2882 42806 1 29550 43017 621 14277 14898 13943 18015 12193 13534 28274 32623 39226 6...
output:
948
result:
ok single line: '948'
Test #40:
score: 0
Accepted
time: 21ms
memory: 11660kb
input:
49994 49973 9997 40837 25279 12159 6099 49994 37259 6708 36330 47219 49994 35634 8425 39801 1956 1 49130 44916 30318 15604 22704 13817 38542 35832 41248 49994 23687 30703 27165 17319 44166 37092 25473 49994 49994 27079 40786 734 8197 29492 49994 17426 1 41903 11302 48581 46613 14284 32384 30186 3042...
output:
2
result:
ok single line: '2'
Test #41:
score: 0
Accepted
time: 77ms
memory: 14144kb
input:
49994 49956 49990 13615 2826 11404 12318 32943 14525 42919 10395 23428 1 18331 10563 10519 33227 15635 37894 1 163 48488 49994 6503 1 20226 1 1903 45206 15683 2355 12954 1 1 12069 2245 49994 49994 7539 1 11324 22515 49994 1 29160 2558 1872 14852 7398 1550 11515 23638 28047 41420 23021 13268 23102 37...
output:
2215
result:
ok single line: '2215'
Test #42:
score: 0
Accepted
time: 15ms
memory: 14332kb
input:
49999 49962 49997 1 2 49999 30630 48553 34345 43092 11401 12624 5578 18289 29743 43541 14598 25587 31228 14332 24430 43466 30864 39262 17901 23667 24702 10496 13952 6679 36722 49173 21256 21038 33560 25400 14953 7870 41652 36231 46837 11248 47363 41637 35891 10654 11386 29698 18679 4794 35804 19135 ...
output:
1
result:
ok single line: '1'
Test #43:
score: 0
Accepted
time: 80ms
memory: 14312kb
input:
49998 49996 49993 1 13801 1 10033 49998 1 153 17110 1 1 32294 34752 49992 36336 12197 35352 29413 31009 8554 21658 6292 1 24399 32685 1 29472 46898 1 42326 1792 4687 49291 5713 8645 154 42459 39259 3617 36910 1 44064 23979 26168 29600 25185 10407 23647 25752 17723 1 32997 7625 49998 1 48192 1 26961 ...
output:
2344
result:
ok single line: '2344'
Test #44:
score: 0
Accepted
time: 13ms
memory: 14204kb
input:
49990 49956 49995 1 2 49990 44001 6619 17134 38603 3575 9560 20762 36093 8082 7095 5458 6085 3604 34712 30283 20793 2034 28662 32359 2407 49277 5 25754 45663 39120 23683 33835 2881 24252 37439 23667 31862 44934 28313 4962 45627 40406 1848 13613 3389 37632 34720 38421 630 14617 10820 49791 35482 2584...
output:
1
result:
ok single line: '1'
Test #45:
score: 0
Accepted
time: 13ms
memory: 14076kb
input:
49998 49951 49999 1 1 49998 49998 49998 49998 49998 1 49998 49998 49998 49998 49998 49998 49998 49998 1 49998 49998 1 49998 49998 1 1 49998 49998 49998 49998 1 1 1 1 49998 1 49998 49998 1 49998 1 1 1 1 49998 1 49998 49998 49998 49998 1 1 49998 49998 49998 49998 49998 1 49998 1 1 1 1 49998 1 1 1 1 1 ...
output:
31641
result:
ok single line: '31641'