QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#69523 | #987. Easter Gift | Arraiter # | AC ✓ | 37ms | 13492kb | C++20 | 3.0kb | 2022-12-28 09:00:37 | 2022-12-28 09:00:40 |
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: 3376kb
input:
8 1 4 4 2 7 14 12 10
output:
2
result:
ok answer is '2'
Test #2:
score: 0
Accepted
time: 2ms
memory: 3380kb
input:
1636 1132 329 1961 256 764 30 1435 1788 873 602 752 940 632 1552 723 883 1224 237 1450 206 357 599 1710 1912 1162 956 331 1799 584 853 153 666 412 1260 1422 1436 1725 1738 935 365 689 1362 1144 1337 54 205 570 1783 1213 378 247 1533 1451 805 1210 596 1699 1984 411 367 1550 1860 1872 1945 1538 1156 1...
output:
10
result:
ok answer is '10'
Test #3:
score: 0
Accepted
time: 3ms
memory: 3388kb
input:
1560 1 5 5 7 7 11 13 18 19 19 20 20 23 24 24 25 26 26 30 30 35 38 38 40 40 41 42 42 42 45 46 49 51 52 52 59 59 60 61 61 66 67 67 67 67 67 68 70 70 72 73 74 75 75 77 80 80 81 81 82 86 91 92 92 98 103 103 104 104 105 105 107 110 110 112 112 114 115 118 118 118 121 122 124 125 125 127 132 133 136 137 1...
output:
0
result:
ok answer is '0'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
2000 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1699 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1186 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 1760 ...
output:
103
result:
ok answer is '103'
Test #5:
score: 0
Accepted
time: 2ms
memory: 3536kb
input:
2000 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 7...
output:
0
result:
ok answer is '0'
Test #6:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
2000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...
output:
0
result:
ok answer is '0'
Test #7:
score: 0
Accepted
time: 2ms
memory: 3624kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
0
result:
ok answer is '0'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3456kb
input:
400 3 5 14 10 6 7 6 16 8 24 4 14 12 22 9 15 19 21 17 3 28 33 36 41 46 49 54 59 62 67 72 75 79 83 84 82 87 90 83 95 86 86 87 81 87 87 88 83 92 92 92 94 82 108 106 97 96 105 102 110 100 99 108 105 97 105 105 108 110 104 111 112 112 118 116 114 125 130 118 118 120 122 122 122 123 118 126 113 128 128 12...
output:
2
result:
ok answer is '2'
Test #9:
score: 0
Accepted
time: 2ms
memory: 3396kb
input:
2000 44 748 561 561 562 562 135 136 137 137 586 586 589 535 384 972 971 767 769 14 15 15 16 16 860 861 970 966 828 119 121 791 823 73 444 418 638 452 739 646 641 827 77 851 779 911 723 639 393 385 437 911 943 947 407 110 9 886 105 762 465 495 997 996 994 994 993 157 190 189 186 186 184 882 937 882 8...
output:
8
result:
ok answer is '8'
Test #10:
score: 0
Accepted
time: 2ms
memory: 3532kb
input:
2000 9 9 9 9 1900 9 9 9 9 9 9 9 9 9 9 1900 9 9 1900 9 9 9 1900 9 9 9 9 9 9 9 9 9 9 9 9 9 1900 1900 9 9 9 9 9 9 9 9 9 9 9 1900 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 1900 9 1900 1900 1900 1900 9 9 9 1900 9 1900 9 9 1900 9 9 9 1900 9 9 1900 9 9 9 9 1900 9 1900 9 9 1900 9 9 9 9 9 9 1900 1900 9 9 9 9 9 9 9 190...
output:
1891
result:
ok answer is '1891'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
2000 1419 952 965 83 1401 1152 548 1408 801 782 1840 1034 368 1243 704 422 76 1373 523 73 1914 1200 645 1684 535 1948 332 1693 1443 13 1681 1507 1756 1154 1157 1609 1651 1344 1905 1975 869 1863 345 1200 1949 1630 814 838 837 208 574 1494 1004 1784 1799 163 333 1457 433 873 1622 1672 1888 186 456 588...
output:
8
result:
ok answer is '8'
Test #12:
score: 0
Accepted
time: 2ms
memory: 3468kb
input:
400 4 7 9 9 6 6 13 16 21 26 30 34 37 38 39 40 38 38 45 41 43 43 41 45 45 46 48 48 52 50 48 50 48 57 60 64 65 65 68 67 70 74 78 81 84 87 91 94 99 104 102 102 102 100 107 112 111 109 107 107 116 121 125 129 132 135 140 143 145 147 148 149 148 153 156 151 155 154 158 158 160 162 161 162 165 163 166 167...
output:
2
result:
ok answer is '2'
Test #13:
score: 0
Accepted
time: 2ms
memory: 3504kb
input:
1068 699 697 531 407 531 187 223 440 502 24 809 799 799 797 259 642 931 134 155 175 166 502 653 684 417 253 901 903 77 242 425 471 102 451 501 770 768 767 760 760 435 962 78 26 594 406 256 153 75 173 175 519 268 205 405 263 548 123 388 392 319 890 894 897 898 163 740 251 126 117 512 666 944 168 601 ...
output:
14
result:
ok answer is '14'
Test #14:
score: 0
Accepted
time: 2ms
memory: 3528kb
input:
100 10 18 23 25 29 31 33 35 40 43 48 49 51 56 69 59 59 59 63 65 57 74 84 90 97 106 111 113 113 157 148 122 131 122 129 114 133 153 138 143 124 138 156 119 162 162 173 182 188 196 207 218 227 233 239 249 260 266 275 286 296 305 310 314 341 324 325 327 346 327 348 346 337 355 327 319 332 333 351 351 3...
output:
5
result:
ok answer is '5'
Test #15:
score: 0
Accepted
time: 2ms
memory: 3476kb
input:
400 4 7 10 14 17 45 17 18 19 20 22 23 25 40 28 58 29 29 29 29 30 31 32 34 38 37 35 38 39 53 40 42 42 27 44 16 47 47 61 50 52 44 55 56 56 57 58 28 59 60 48 61 63 63 67 71 74 78 83 88 93 123 131 126 114 94 134 110 139 99 128 94 103 109 136 107 107 107 138 114 112 130 93 95 126 115 115 117 104 120 122 ...
output:
2
result:
ok answer is '2'
Test #16:
score: 0
Accepted
time: 2ms
memory: 3636kb
input:
1586 222 1657 1835 1579 691 1659 1639 1720 535 964 1982 1869 12 917 1792 459 531 1456 1111 468 1953 1895 455 1318 1279 1583 580 1149 390 1050 601 492 1259 1894 510 1236 1827 520 135 1655 953 1642 963 983 835 1239 1547 952 474 288 933 1108 1821 1670 1473 1817 1353 879 37 1116 136 1913 1161 743 626 14...
output:
12
result:
ok answer is '12'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
1808 1 2 3 5 8 8 9 17 17 19 19 20 20 21 23 24 25 25 26 26 27 27 29 31 31 31 32 32 36 36 37 37 43 43 47 51 51 52 54 54 56 56 59 60 63 63 65 66 66 68 68 70 72 73 74 75 75 77 78 79 81 81 82 82 83 83 84 86 87 89 90 90 93 94 95 95 98 98 99 99 100 102 102 104 104 105 106 107 110 110 114 114 116 116 118 11...
output:
0
result:
ok answer is '0'
Test #18:
score: 0
Accepted
time: 2ms
memory: 3516kb
input:
2000 473 473 473 473 473 473 473 473 473 473 473 473 473 473 473 473 473 473 473 473 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1577 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1062 1365 1365 1365 ...
output:
101
result:
ok answer is '101'
Test #19:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
2000 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 137 137 137 137 137 137 137 137 137 137 137 137 137 137 137 137 137 137 137 137 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159...
output:
0
result:
ok answer is '0'
Test #20:
score: 0
Accepted
time: 2ms
memory: 3528kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
0
result:
ok answer is '0'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3388kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
0
result:
ok answer is '0'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3332kb
input:
400 5 8 11 15 20 23 28 32 37 40 43 47 52 66 60 54 67 60 59 59 54 65 67 63 63 63 61 59 68 56 61 57 68 71 74 79 82 86 91 94 98 102 105 109 112 116 121 124 128 132 136 140 145 148 153 157 162 166 169 172 173 181 174 183 177 191 186 181 180 179 174 184 176 184 179 186 188 184 189 183 194 197 202 206 211...
output:
2
result:
ok answer is '2'
Test #23:
score: 0
Accepted
time: 2ms
memory: 3536kb
input:
2000 636 641 641 640 55 781 733 734 735 31 31 29 69 67 65 63 63 105 195 886 884 884 884 178 191 171 928 783 933 964 275 232 61 530 393 883 495 783 752 324 771 747 617 262 118 97 27 485 681 151 298 14 529 826 641 13 495 784 996 196 2 752 389 466 434 950 638 150 824 157 958 564 318 764 501 945 563 107...
output:
8
result:
ok answer is '8'
Test #24:
score: 0
Accepted
time: 2ms
memory: 3464kb
input:
2000 4 4 4 4 4 4 1902 1902 4 4 4 4 4 4 4 1902 4 4 1902 4 1902 1902 1902 1902 4 4 4 1902 1902 4 4 4 4 4 4 4 4 1902 1902 4 4 4 1902 4 4 4 1902 4 1902 4 4 1902 4 4 4 1902 1902 4 4 1902 4 4 4 4 4 4 4 1902 4 4 4 4 1902 4 4 4 1902 4 1902 4 4 1902 4 4 4 4 4 1902 4 4 4 1902 1902 4 4 1902 4 1902 1902 4 4 4 4...
output:
1898
result:
ok answer is '1898'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3388kb
input:
2000 1313 1305 1766 1936 231 1394 476 1302 1189 883 126 30 1348 1672 346 18 1845 1828 482 1071 785 1885 87 1959 1351 1793 977 772 446 942 309 1279 220 411 951 559 1829 1427 1028 830 1188 1756 724 365 911 832 1659 100 213 1884 961 773 1606 843 357 1365 1798 946 1634 1316 1040 736 185 1299 853 494 495...
output:
9
result:
ok answer is '9'
Test #26:
score: 0
Accepted
time: 2ms
memory: 3616kb
input:
1231 130 129 129 128 491 491 484 483 482 74 101 211 65 172 287 297 436 62 60 641 621 625 625 626 468 269 663 662 655 361 54 49 398 50 252 254 221 64 216 214 30 238 306 294 463 259 433 50 182 358 278 81 99 1057 1056 1054 1053 1051 637 1013 1012 1011 1009 495 716 87 857 29 867 305 694 763 432 1039 103...
output:
12
result:
ok answer is '12'
Test #27:
score: 0
Accepted
time: 2ms
memory: 3512kb
input:
100 31 9 10 14 15 20 23 28 30 6 33 38 40 44 49 50 51 56 58 63 73 83 93 104 110 118 128 134 140 162 174 146 151 154 169 142 175 166 164 166 191 146 187 176 184 182 178 159 174 195 199 202 207 208 210 213 213 217 218 219 222 227 231 234 235 240 240 241 242 252 263 272 281 289 297 304 315 321 327 351 3...
output:
5
result:
ok answer is '5'
Test #28:
score: 0
Accepted
time: 2ms
memory: 3312kb
input:
20 66 112 245 275 288 387 529 583 592 608 664 780 826 847 1019 1131 1205 1160 1368 1370
output:
45
result:
ok answer is '45'
Test #29:
score: 0
Accepted
time: 2ms
memory: 3400kb
input:
400 6 26 7 53 49 19 16 13 15 22 37 56 35 56 7 38 11 23 56 21 52 29 7 27 31 32 33 34 9 25 17 37 55 40 41 47 51 26 45 35 20 51 51 45 52 43 23 11 21 50 31 82 58 64 62 63 64 64 80 65 64 71 99 67 67 68 85 72 65 74 75 77 92 80 60 101 83 88 106 87 85 88 90 79 94 94 94 96 98 100 64 100 100 100 69 103 104 56...
output:
2
result:
ok answer is '2'
Test #30:
score: 0
Accepted
time: 2ms
memory: 3588kb
input:
1524 1889 1490 75 1606 262 1278 1852 1073 930 28 730 771 41 1990 1768 1103 1826 1948 1724 1840 705 686 1138 1905 100 65 1019 538 1162 1825 163 1425 378 257 908 641 392 782 452 1017 1083 464 1596 895 1179 1636 1867 1911 958 1920 630 804 359 905 1595 1975 931 1425 326 1865 978 1740 372 1031 1712 1488 ...
output:
10
result:
ok answer is '10'
Test #31:
score: 0
Accepted
time: 2ms
memory: 3380kb
input:
1128 4 5 7 11 12 12 13 15 15 16 16 16 17 19 20 21 22 23 23 23 24 27 28 29 31 31 32 37 42 44 45 46 48 48 48 49 51 52 54 59 59 60 63 63 63 64 65 66 67 71 72 74 74 74 75 75 80 81 86 95 97 97 99 102 105 105 105 106 109 110 112 114 114 115 117 117 117 117 118 122 124 125 128 129 131 131 136 137 137 139 1...
output:
0
result:
ok answer is '0'
Test #32:
score: 0
Accepted
time: 1ms
memory: 3524kb
input:
2000 664 664 664 664 664 664 664 664 664 664 664 664 664 664 664 664 664 664 664 664 662 662 662 662 662 662 662 662 662 662 662 662 662 662 662 662 662 662 662 662 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 1681 1681 1681 1681 1681 1681 1681 1681 1681 1681 1681 ...
output:
79
result:
ok answer is '79'
Test #33:
score: 0
Accepted
time: 2ms
memory: 3604kb
input:
2000 81 81 81 81 81 81 81 81 81 81 81 81 81 81 81 81 81 81 81 81 105 105 105 105 105 105 105 105 105 105 105 105 105 105 105 105 105 105 105 105 135 135 135 135 135 135 135 135 135 135 135 135 135 135 135 135 135 135 135 135 139 139 139 139 139 139 139 139 139 139 139 139 139 139 139 139 139 139 139...
output:
0
result:
ok answer is '0'
Test #34:
score: 0
Accepted
time: 1ms
memory: 3392kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
0
result:
ok answer is '0'
Test #35:
score: 0
Accepted
time: 2ms
memory: 3396kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
0
result:
ok answer is '0'
Test #36:
score: 0
Accepted
time: 2ms
memory: 3472kb
input:
400 4 8 13 17 21 26 29 34 39 44 47 50 53 57 62 67 71 74 79 84 87 87 101 102 91 103 104 94 91 98 91 93 89 96 100 91 101 91 92 103 89 107 112 109 110 110 108 119 117 113 115 116 117 117 114 113 119 121 123 125 126 126 138 129 137 131 143 143 134 135 135 145 130 127 144 139 141 131 133 139 145 137 165 ...
output:
2
result:
ok answer is '2'
Test #37:
score: 0
Accepted
time: 2ms
memory: 3528kb
input:
2000 8 764 764 760 759 320 446 614 321 804 803 802 802 14 912 907 907 904 77 79 81 81 81 620 632 631 851 848 844 844 96 95 265 91 90 89 208 768 13 770 610 611 358 389 463 754 43 42 42 40 833 833 835 123 499 183 774 4 779 4 789 771 8 11 812 811 109 167 322 797 772 438 536 698 485 718 841 188 690 508 ...
output:
7
result:
ok answer is '7'
Test #38:
score: 0
Accepted
time: 2ms
memory: 3592kb
input:
2000 1958 8 1958 8 1958 1958 8 1958 8 8 8 8 1958 1958 1958 1958 8 8 1958 8 8 1958 8 1958 8 1958 8 1958 1958 8 8 8 8 8 8 8 1958 8 1958 8 8 1958 8 8 8 1958 8 8 1958 8 8 8 8 1958 1958 1958 1958 8 8 8 1958 8 1958 8 8 8 8 1958 8 8 1958 1958 1958 8 8 8 1958 1958 8 8 8 1958 1958 8 1958 8 8 1958 8 1958 8 8 ...
output:
1950
result:
ok answer is '1950'
Test #39:
score: 0
Accepted
time: 2ms
memory: 3636kb
input:
2000 957 1044 409 1316 1520 801 440 702 1907 1482 269 1888 1911 868 1781 93 196 1726 1002 39 758 1790 829 1698 1165 654 1922 997 944 437 181 1394 808 734 387 542 429 1698 1265 1422 301 601 1994 707 1834 1425 1163 860 1439 900 1138 1681 750 281 411 772 745 319 1178 1151 685 343 308 1515 523 152 748 6...
output:
7
result:
ok answer is '7'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3396kb
input:
400 5 9 14 18 22 23 25 27 28 30 34 32 30 32 34 39 43 46 50 53 57 60 63 68 73 75 74 75 75 74 79 81 84 82 85 86 86 87 90 88 92 96 102 98 100 98 103 107 110 114 117 121 124 125 126 127 126 129 132 137 142 146 151 156 159 161 159 161 162 160 166 171 175 173 176 176 176 176 178 178 178 179 184 188 193 19...
output:
2
result:
ok answer is '2'
Test #41:
score: 0
Accepted
time: 2ms
memory: 3516kb
input:
1376 398 398 397 5 6 6 7 470 371 592 464 455 376 407 327 645 931 929 925 925 605 604 1030 1029 1028 789 1015 794 782 976 425 572 292 69 321 549 578 38 371 355 760 874 1015 89 403 317 695 953 882 127 252 607 368 419 386 96 449 753 1014 499 329 391 353 221 219 413 218 496 485 484 483 260 38 508 163 22...
output:
14
result:
ok answer is '14'
Test #42:
score: 0
Accepted
time: 2ms
memory: 3548kb
input:
100 9 16 25 32 39 50 60 69 74 114 83 88 126 89 91 111 125 99 92 107 102 131 79 116 121 96 89 112 154 194 181 141 135 169 183 151 134 159 144 187 174 164 176 189 150 149 138 155 204 243 217 252 208 238 226 226 259 212 234 243 216 248 221 234 257 234 229 264 241 285 297 266 272 275 275 295 284 279 293...
output:
5
result:
ok answer is '5'
Test #43:
score: 0
Accepted
time: 2ms
memory: 3304kb
input:
20 122 197 284 393 501 616 539 759 761 800 808 811 959 1010 1097 1138 1165 1341 1466 1634
output:
77
result:
ok answer is '77'
Test #44:
score: 0
Accepted
time: 2ms
memory: 3452kb
input:
400 4 8 12 17 22 25 28 31 34 39 42 45 49 52 57 61 66 70 75 79 75 79 94 77 107 79 130 83 100 105 85 132 85 117 111 90 113 123 96 77 82 100 101 102 126 98 106 92 75 109 89 106 104 127 115 115 130 124 119 120 121 80 118 77 85 87 113 128 114 133 135 167 142 149 138 144 173 140 138 144 151 169 178 146 15...
output:
2
result:
ok answer is '2'
Test #45:
score: 0
Accepted
time: 12ms
memory: 8840kb
input:
104836 483281826595672874 377908514744314806 619551973042364984 323592564181774957 580280747743582105 484501170698097770 607399044021518955 268877026585669877 171864139436587502 982467083527233860 47252829969237616 162021182609779121 623575433380335701 178692664010183518 468785588377988889 429714015...
output:
122350010277400
result:
ok answer is '122350010277400'
Test #46:
score: 0
Accepted
time: 9ms
memory: 9556kb
input:
124114 9127000775796 13283001129056 16892001435821 17632001498721 26429002246466 32705002779926 38655003285676 45026003827211 58005004930426 68903005856756 70193005966406 73982006288471 79542006761071 80636006854061 81793006952406 89489007606566 94051007994336 100966008582111 104558008887431 1185020...
output:
0
result:
ok answer is '0'
Test #47:
score: 0
Accepted
time: 28ms
memory: 13252kb
input:
200000 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 539385546387156319 53938554...
output:
1091414093861604
result:
ok answer is '1091414093861604'
Test #48:
score: 0
Accepted
time: 30ms
memory: 13484kb
input:
200000 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 115130010016311 11513...
output:
0
result:
ok answer is '0'
Test #49:
score: 0
Accepted
time: 15ms
memory: 12668kb
input:
200000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
0
result:
ok answer is '0'
Test #50:
score: 0
Accepted
time: 25ms
memory: 13312kb
input:
200000 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 775851912050819194 77585191...
output:
0
result:
ok answer is '0'
Test #51:
score: 0
Accepted
time: 32ms
memory: 12756kb
input:
179240 999435253655 2018473198388 2742427120821 3586429587166 4644912270355 5680650427214 9932419725541 7000056273630 7608336761797 6609798878474 7841097253858 8977191658243 9583385293362 8374371187851 6191495615625 10270448678981 11045038867612 11987630219240 13043468545286 14348300715015 155344400...
output:
706114651357
result:
ok answer is '706114651357'
Test #52:
score: 0
Accepted
time: 29ms
memory: 13300kb
input:
200000 82596551516286009 450480427993718326 450478575993549794 450475313993252952 20929941904624625 20919670903689964 20919240903650834 20918876903617710 432536203360793949 289284171324859212 493831405938657296 493829581938491312 493820684937681685 156099262205032661 351563622992289218 3515610349920...
output:
61221005571111
result:
ok answer is '61221005571111'
Test #53:
score: 0
Accepted
time: 20ms
memory: 13128kb
input:
200000 588467382138999003 9 9 9 9 9 9 9 588467382138999003 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 588467382138999003 588467382138999003 9 9 588467382138999003 9 9 9 9 588467382138999003 9 9 588467382138999003 9 588467382138999003 588467382138999003 9 9 588467382138999003 588467382138999003 9 9 9 58...
output:
588467382138998994
result:
ok answer is '588467382138998994'
Test #54:
score: 0
Accepted
time: 35ms
memory: 13288kb
input:
200000 241007173413666764 489024245479254213 823268526563971871 893931311135610741 515878110976663644 434452670404097773 211902642706945488 231921869568733499 294116329352818237 284339269443551664 973204025507973094 816866754968607168 546433321818298160 420784248132934534 120254237183643879 40032323...
output:
59766005558238
result:
ok answer is '59766005558238'
Test #55:
score: 0
Accepted
time: 16ms
memory: 13484kb
input:
200000 921076972111 1593280516104 2367013101839 3061177172286 3937174714719 4539834220271 5271562038621 5737445593707 6156662082050 6273581713261 8176558247434 6580014669310 6373431059473 7100335581503 7785782844432 7535515368296 7739105400177 9373270371807 6581938592516 8597073090678 8981544159184 ...
output:
577654053542
result:
ok answer is '577654053542'
Test #56:
score: 0
Accepted
time: 19ms
memory: 9240kb
input:
121777 81773685768500027 430994237944451972 430986091943678102 430960402941237647 99340567437353715 108965296351702963 312759438712146232 99364787439654615 99376884440803830 271038784748684130 161974925387617683 161973852387515748 161972586387395478 467314183394846814 467295939393113634 467271258390...
output:
97057009220415
result:
ok answer is '97057009220415'
Test #57:
score: 0
Accepted
time: 1ms
memory: 3320kb
input:
100 468641653714 1103032887043 7090253586553 1824156344942 2289000722736 2917667744811 3323762877436 6934973296927 4322712896485 4797350939404 4804123579292 5112694906916 5399532907960 5478505446601 6065846645880 6477896967181 6684554515969 3713471284597 1123942684886 7107971093109 8142220986647 916...
output:
726609487295
result:
ok answer is '726609487295'
Test #58:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
20 388707113345 765398148503 1426145896707 1740969273230 1932851817344 2619529878483 3180913856511 3455536331033 3540258720270 4332467653392 4334309478290 4693855419188 5000345132354 5026613379181 5424459093335 5621939197378 6392660202611 6008884891922 6844709445685 7498524822033
output:
383775310689
result:
ok answer is '383775310689'
Test #59:
score: 0
Accepted
time: 2ms
memory: 3480kb
input:
400 403444441236 853152504771 1438882322270 2074378813842 2707675355173 3222694743748 3895298227229 4591462746650 5235389598577 5602963398178 5835375721037 5880716710251 37989029003928 6154374931969 6346859951598 6381032494006 6692756784397 6949416530033 7021450962421 7253153706976 7340937977428 742...
output:
371208330720
result:
ok answer is '371208330720'
Test #60:
score: 0
Accepted
time: 17ms
memory: 9224kb
input:
114745 348313785483064294 127838677656028848 26546090628062897 686104196924314568 185840440398203343 953464699393003900 125096599384563126 817598071942208010 149982185848236126 449196496470452521 999090152909923719 298928090593880524 127319123604593002 629041074275065433 203570750153503927 227990112...
output:
93295009236205
result:
ok answer is '93295009236205'
Test #61:
score: 0
Accepted
time: 10ms
memory: 9480kb
input:
119171 3340000334001 21786002178601 29855002985501 32544003254401 38085003808501 42261004226101 46098004609801 55481005548101 61139006113901 63270006327001 64213006421301 72162007216201 97833009783301 98811009881101 101562010156201 108387010838701 108656010865601 112128011212801 115043011504301 1154...
output:
0
result:
ok answer is '0'
Test #62:
score: 0
Accepted
time: 34ms
memory: 13112kb
input:
200000 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 872871842160054863 87287184...
output:
902622091164822
result:
ok answer is '902622091164822'
Test #63:
score: 0
Accepted
time: 27ms
memory: 13492kb
input:
200000 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 276560028209121 27656...
output:
0
result:
ok answer is '0'
Test #64:
score: 0
Accepted
time: 25ms
memory: 12808kb
input:
200000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...
output:
0
result:
ok answer is '0'
Test #65:
score: 0
Accepted
time: 30ms
memory: 13344kb
input:
200000 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 352869012698376803 35286901...
output:
0
result:
ok answer is '0'
Test #66:
score: 0
Accepted
time: 29ms
memory: 13064kb
input:
200000 497131348695922228 497125433695295238 497123020695039460 497117842694490592 461144164881280752 461152875882204118 461155889882523602 461160151882975374 142403805094803127 142404230094848177 142406137095050319 256930553234638232 256928428234412982 91185216665632834 91189540666091178 9119010566...
output:
61966006568396
result:
ok answer is '61966006568396'
Test #67:
score: 0
Accepted
time: 30ms
memory: 13216kb
input:
200000 4 4 4 4 4 4 878603382010560515 4 4 4 4 4 4 878603382010560515 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 878603382010560515 4 4 4 4 4 4 4 4 878603382010560515 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 878603382010560515 4 4 878603382010560515 4 4 4 8786033...
output:
878603382010560511
result:
ok answer is '878603382010560511'
Test #68:
score: 0
Accepted
time: 33ms
memory: 13264kb
input:
200000 217996918543666883 786534761945753096 440989798626897553 536867312981668995 583380782005123511 67264521264568119 165363719859281433 875275522529755113 685476225031431278 542871280630097431 829847723623552856 276501864862200908 595474526311247957 435556408040091332 110846103971379048 741088799...
output:
53600005788800
result:
ok answer is '53600005788800'
Test #69:
score: 0
Accepted
time: 24ms
memory: 13448kb
input:
200000 190359227665 352408485520 494976234464 614858904969 800193915713 807028411254 877496080267 910079675422 1088892219344 943756048663 1022768633714 916483058964 1149610971400 1159446758152 1215853293031 1381305710472 1298945050548 1471438357122 1508265949571 1539121196461 1518359683817 159452484...
output:
105347293751
result:
ok answer is '105347293751'
Test #70:
score: 0
Accepted
time: 32ms
memory: 13024kb
input:
197861 305104487561493134 305100757561082834 305095247560476734 234257763768353653 234262376768861083 234262499768874613 234263129768943913 234269322769625143 46422034106423603 46428628107148943 46430459107350353 492261879148805901 492258858148473591 107626230838885224 107629405839234474 10763264583...
output:
71023007812530
result:
ok answer is '71023007812530'
Test #71:
score: 0
Accepted
time: 0ms
memory: 3380kb
input:
100 978819531351 2252869258949 4392299236107 9632564412243 3452403509131 3975597437204 4299150906902 8178924323451 4921969521676 5506082435168 6197619011573 6751507830956 7439328044887 11993030394567 8859074216991 3407848616466 9693230278312 10207316714045 10268108211248 11068754028461 1182084302535...
output:
842233602945
result:
ok answer is '842233602945'
Test #72:
score: 0
Accepted
time: 2ms
memory: 3444kb
input:
20 658158267289 1439132065012 1629189335359 1682800639760 1848756573026 2122195206149 2881867693987 3005012408249 3117293922249 3946401177898 4575905082846 4325487723145 5192149386226 5231654046694 5420487234171 5679723626902 5863167106313 6300149194060 5940740561816 7017481549762
output:
359408632244
result:
ok answer is '359408632244'
Test #73:
score: 0
Accepted
time: 2ms
memory: 3332kb
input:
400 116578864598 274624046117 430293427932 564453716733 684988483174 800959615922 933926021885 1128333126605 1327546951969 1509425365940 1628012635015 1851106937597 2036359560358 2192560836099 9908809344405 2281529234148 5091275486476 2431783822678 2466188706347 20380834449916 14468799506714 5607120...
output:
111224601663
result:
ok answer is '111224601663'
Test #74:
score: 0
Accepted
time: 23ms
memory: 11964kb
input:
144692 497578886723992292 780591600987441250 993108610214380001 100316158436041829 519673461242773714 741367555515900148 917020547540340989 968100430363447502 781665352109848864 286483713659142845 951984293526207898 268014123553609599 493649857276082879 797127445872527566 311996680567621062 49941418...
output:
96588011011032
result:
ok answer is '96588011011032'
Test #75:
score: 0
Accepted
time: 4ms
memory: 11916kb
input:
140253 5537000636756 8079000929086 10113001162996 13401001541116 23326002682491 28425003268876 28988003333621 32133003695296 41826004809991 42521004889916 50606005819691 53059006101786 54014006211611 55810006418151 60389006944736 64378007403471 72010008281151 73807008487806 85515009834226 9911001139...
output:
0
result:
ok answer is '0'
Test #76:
score: 0
Accepted
time: 29ms
memory: 13176kb
input:
200000 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 797503508510405631 79750350...
output:
1008727117012441
result:
ok answer is '1008727117012441'
Test #77:
score: 0
Accepted
time: 15ms
memory: 13316kb
input:
200000 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004078036 34855004...
output:
0
result:
ok answer is '0'
Test #78:
score: 0
Accepted
time: 20ms
memory: 12808kb
input:
200000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
0
result:
ok answer is '0'
Test #79:
score: 0
Accepted
time: 23ms
memory: 13376kb
input:
200000 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 464007660216910708 46400766...
output:
0
result:
ok answer is '0'
Test #80:
score: 0
Accepted
time: 22ms
memory: 12884kb
input:
179683 314245463939 700574605650 1575220057098 1662994078032 1865999867936 2801995540885 2902788796122 3188182238740 3407594294920 3424077276945 4433592822196 5442687349869 7240842070563 8495446884961 10361227987745 11835544001039 13116485419589 18721727200817 15220656698748 14572230221064 173876863...
output:
980019710338
result:
ok answer is '980019710338'
Test #81:
score: 0
Accepted
time: 37ms
memory: 13060kb
input:
200000 7358120890332521 144556172491296580 209515951351429669 176774174389674794 71698884675564909 219517835561657740 245280992678999602 430941015143862110 430936834143356209 430935186143156801 430920463141375318 292212447357705615 292214990358013318 292217061358263909 292219228358526116 29222090235...
output:
62995007622395
result:
ok answer is '62995007622395'
Test #82:
score: 0
Accepted
time: 34ms
memory: 13296kb
input:
200000 918526390060217990 918526390060217990 4 918526390060217990 4 918526390060217990 918526390060217990 4 918526390060217990 918526390060217990 918526390060217990 4 4 918526390060217990 918526390060217990 918526390060217990 4 4 918526390060217990 4 4 918526390060217990 918526390060217990 4 9185263...
output:
918526390060217986
result:
ok answer is '918526390060217986'
Test #83:
score: 0
Accepted
time: 30ms
memory: 13112kb
input:
200000 338557200642535082 625624407951801066 401907845434664245 71884096841743753 272389009503847645 266452539773661842 385312780393471264 768691029548995330 506346547280624384 399034920081294470 413805571898084652 167697489626790892 537382740098076095 22044999711534864 637504477413049546 2601151879...
output:
62802007724646
result:
ok answer is '62802007724646'
Test #84:
score: 0
Accepted
time: 16ms
memory: 13320kb
input:
200000 51409265582 1367765402271 1270315636278 1860464694224 1716712057168 625075687220 679246706346 1991435960529 463934884608 859836033791 1041823240077 1123755840146 771291525241 125446644393 280691326419 2361354922741 2142243616214 359153885248 1592549944664 782171405390 3573659890948 2461438850...
output:
236549233715
result:
ok answer is '236549233715'
Test #85:
score: 0
Accepted
time: 17ms
memory: 8976kb
input:
109802 426005938250741526 425993953249243401 425981061247631901 191597473949683847 191600819950102097 191605232950653722 191606714950838972 168272149034018243 168272763034094993 74499243312405195 74514033314253945 74535372316921320 74540976317621820 74543532317941320 381219022652377068 3454048841756...
output:
97718012214750
result:
ok answer is '97718012214750'
Test #86:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
100 569957605932 1186448177379 1600369381800 2113719624655 2376711700088 2681550574014 2919448648775 3616242537158 4305098590615 4993059468109 5381161482008 9776074387591 6251909783099 7055421350912 7246016914214 7978527102476 9641503210781 8844287286674 8596171077511 6024783433675 10902757296644 12...
output:
868678102365
result:
ok answer is '868678102365'
Test #87:
score: 0
Accepted
time: 2ms
memory: 3452kb
input:
20 370069245225 643431231737 972383740024 1307853805990 1379643054627 1578471323934 1826740870213 2347005570006 2652880765580 2973517003001 3376828167738 3477616332762 3516194811013 3886622717531 3671455532850 4225078122040 3896244369279 4628450952946 4895059057595 4797034128477
output:
328833752761
result:
ok answer is '328833752761'
Test #88:
score: 0
Accepted
time: 2ms
memory: 3532kb
input:
400 107159716298908 711595280430 907110301747 66510886445589 96995030413975 2075945510898 2498150831929 78595733964607 3302715900143 3537995683368 4172491266728 10579676347189 139538967888659 114035010827533 5510492948520 27126696637746 6065678740639 19876071643108 72710283111324 6827635232944 66262...
output:
711781613058
result:
ok answer is '711781613058'