QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#103571 | #2067. Evil Subsequence | Qiuly | AC ✓ | 704ms | 4312kb | C++14 | 3.3kb | 2023-05-06 20:53:11 | 2023-05-06 20:53:13 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 2ms
memory: 3776kb
input:
10 5 1 5 5 4 1 4 3 3 4 2 3 4 3 2 1
output:
20
result:
ok single line: '20'
Test #2:
score: 0
Accepted
time: 2ms
memory: 3696kb
input:
4 2 2 2 2 2 2 2
output:
6
result:
ok single line: '6'
Test #3:
score: 0
Accepted
time: 639ms
memory: 4312kb
input:
3000 5 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52...
output:
1680758247000
result:
ok single line: '1680758247000'
Test #4:
score: 0
Accepted
time: 2ms
memory: 4220kb
input:
3000 5 65 72 201 164 32 145 145 9 150 25 106 142 221 240 102 175 126 156 43 154 218 148 113 177 164 198 136 12 101 18 207 245 247 205 62 106 11 63 221 158 163 37 75 120 152 47 56 18 21 131 235 59 26 57 188 246 250 220 155 249 221 239 136 47 63 102 24 54 111 41 247 226 17 149 96 184 156 250 167 116 2...
output:
1939255871586632
result:
ok single line: '1939255871586632'
Test #5:
score: 0
Accepted
time: 3ms
memory: 3876kb
input:
3000 5 3 4 3 1 7 4 1 4 5 5 2 3 3 3 3 6 2 8 1 1 4 2 1 3 5 3 7 8 7 8 8 8 3 3 7 5 7 2 3 1 3 5 8 6 3 3 2 4 8 6 5 6 7 2 7 5 8 2 4 4 8 3 2 2 7 8 2 3 3 4 5 7 4 3 5 2 6 1 7 2 2 1 8 4 4 7 5 8 6 6 1 8 4 4 3 5 7 1 5 2 2 4 6 7 8 6 1 7 4 4 4 2 7 1 2 4 5 2 2 4 8 8 5 6 4 1 3 2 1 8 7 2 5 1 7 8 7 6 5 6 5 4 8 3 7 6 4...
output:
20670573373565
result:
ok single line: '20670573373565'
Test #6:
score: 0
Accepted
time: 2ms
memory: 4168kb
input:
3000 5 4 2 4 1 1 3 1 2 3 2 1 1 2 4 4 1 3 4 3 2 3 3 3 3 4 4 2 3 1 1 4 4 2 1 3 3 2 3 3 2 4 1 3 1 3 3 3 4 2 4 4 3 4 4 3 3 1 1 2 2 3 1 1 2 2 2 2 3 4 2 2 4 1 3 2 2 1 4 2 2 1 2 1 2 2 1 4 4 2 4 2 2 1 4 3 3 1 1 2 1 2 3 4 1 3 3 4 2 3 4 2 2 1 3 3 3 4 3 4 4 4 1 3 1 3 1 4 2 1 3 1 1 4 3 3 4 1 1 3 4 1 2 2 4 1 2 1...
output:
23571847587173
result:
ok single line: '23571847587173'
Test #7:
score: 0
Accepted
time: 2ms
memory: 3864kb
input:
3000 5 10 14 2 11 15 6 16 5 10 5 6 12 13 14 2 15 15 10 4 16 12 3 1 4 1 9 1 4 1 16 16 14 2 16 1 4 1 4 6 12 10 12 10 14 16 11 7 10 11 9 16 15 5 1 9 5 12 4 9 4 4 5 15 10 2 12 10 10 1 3 16 7 1 11 8 13 3 8 16 9 14 1 7 12 14 1 4 11 15 9 13 2 6 11 1 12 9 16 15 13 2 4 12 9 15 5 2 10 5 7 11 13 9 2 10 5 5 2 2...
output:
6510949874629
result:
ok single line: '6510949874629'
Test #8:
score: 0
Accepted
time: 3ms
memory: 4000kb
input:
3000 5 4 2 3 4 4 4 4 2 2 2 4 1 2 2 2 3 4 4 3 3 4 2 2 2 2 1 4 1 2 1 4 4 1 1 4 3 2 1 3 4 2 2 1 2 4 2 2 4 2 1 3 2 3 1 3 3 2 3 4 2 1 4 3 2 4 4 4 2 2 2 3 1 4 3 4 3 1 2 4 2 2 2 2 2 4 4 3 1 1 1 2 3 3 2 1 4 2 4 2 1 4 4 3 3 4 3 2 4 4 3 1 4 1 4 3 1 3 4 1 3 3 4 3 1 3 1 1 2 1 3 2 1 1 1 4 1 2 4 1 2 1 3 4 2 2 2 2...
output:
47356427446991
result:
ok single line: '47356427446991'
Test #9:
score: 0
Accepted
time: 135ms
memory: 4176kb
input:
3000 5 33 37 57 96 59 173 157 77 208 168 160 77 224 54 69 81 146 59 245 78 177 221 252 189 41 8 10 29 143 234 178 109 151 119 238 178 155 230 153 119 27 49 243 72 55 153 33 54 55 33 171 86 4 14 253 66 172 109 230 150 225 141 27 116 123 129 181 1 242 159 175 229 228 3 105 207 149 13 40 239 106 222 14...
output:
7769727711492
result:
ok single line: '7769727711492'
Test #10:
score: 0
Accepted
time: 0ms
memory: 4268kb
input:
3000 5 24 22 78 13 31 78 47 4 61 89 59 43 31 127 123 53 75 125 13 9 23 4 36 66 47 56 4 45 19 49 6 78 22 125 26 91 96 28 64 63 109 3 14 25 13 26 45 58 98 62 92 43 100 63 108 37 96 99 66 22 117 97 88 35 22 103 59 32 11 21 14 26 111 128 6 78 51 48 109 47 26 34 32 99 59 70 17 71 3 2 69 103 48 45 86 7 86...
output:
1864447769775864
result:
ok single line: '1864447769775864'
Test #11:
score: 0
Accepted
time: 2ms
memory: 4168kb
input:
3000 5 35 12 1 13 64 52 28 47 52 55 45 22 22 40 12 37 32 30 54 6 47 52 10 38 7 8 13 54 13 63 38 44 11 64 34 64 47 53 49 47 12 13 39 60 23 61 60 42 43 58 13 3 6 64 24 20 10 14 4 46 61 40 23 39 9 20 62 23 60 29 8 28 9 19 43 22 6 9 62 43 44 22 61 4 26 21 9 14 18 37 37 59 59 41 58 62 29 8 20 19 40 46 34...
output:
1720126038267192
result:
ok single line: '1720126038267192'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
3000 5 4 4 2 3 2 3 1 2 4 3 3 3 3 3 2 3 2 1 3 3 2 1 3 3 2 2 1 1 3 3 1 2 1 3 3 4 1 1 1 2 1 4 1 3 3 4 4 4 2 4 2 2 4 2 3 1 2 3 4 3 3 4 4 1 1 2 4 1 2 2 3 2 4 1 2 4 2 2 1 1 1 3 3 1 3 4 2 3 4 4 2 1 4 2 2 1 2 1 2 2 1 4 3 3 1 3 1 4 2 4 3 3 2 3 3 4 2 2 4 2 4 1 2 4 4 4 1 4 3 4 2 4 2 2 1 4 1 4 2 1 1 2 4 1 1 2 1...
output:
23639710367188
result:
ok single line: '23639710367188'
Test #13:
score: 0
Accepted
time: 26ms
memory: 4252kb
input:
3000 5 901 1139 1812 792 738 1094 1913 884 413 1659 945 1952 346 976 353 301 477 457 657 1712 402 1836 1581 67 1543 132 132 1026 1132 1185 972 656 538 277 156 911 1289 1721 1647 555 1112 1574 1064 400 201 1085 137 367 1346 1696 698 638 1869 54 713 757 1944 1451 548 785 630 493 1056 404 93 688 1654 6...
output:
66
result:
ok single line: '66'
Test #14:
score: 0
Accepted
time: 6ms
memory: 3788kb
input:
3000 5 29 7 20 8 18 16 10 32 30 19 1 30 29 25 22 29 16 15 13 28 26 6 11 31 4 19 26 11 25 16 8 14 11 25 8 20 12 16 15 19 22 26 24 32 4 32 1 24 22 15 12 25 17 24 31 5 29 17 4 6 5 17 10 4 26 24 2 17 17 5 2 30 32 30 6 3 5 12 10 27 31 28 17 5 19 31 1 4 8 10 5 32 11 23 10 4 12 3 2 29 31 14 4 1 29 30 9 6 3...
output:
1811309788424
result:
ok single line: '1811309788424'
Test #15:
score: 0
Accepted
time: 20ms
memory: 4308kb
input:
3000 5 13 580 246 348 344 822 1015 36 629 225 961 46 461 413 643 427 1017 788 994 355 583 200 887 813 316 650 847 120 781 772 617 710 548 561 828 555 929 991 558 978 470 564 30 120 714 38 219 751 696 1 426 669 653 486 964 506 621 582 725 277 46 106 895 16 475 239 469 416 50 66 992 398 295 296 29 824...
output:
1893420
result:
ok single line: '1893420'
Test #16:
score: 0
Accepted
time: 7ms
memory: 3752kb
input:
3000 5 3 10 12 41 9 16 23 27 12 32 12 35 27 14 52 33 24 39 41 42 55 40 27 5 3 4 14 49 26 33 26 30 44 27 42 47 63 64 61 62 46 19 40 24 37 10 19 61 39 16 55 33 9 3 38 46 52 55 3 64 38 49 6 39 50 44 57 41 59 24 61 61 61 22 6 16 5 61 27 4 51 24 23 45 63 38 43 18 50 25 25 50 40 23 58 60 21 60 58 21 61 22...
output:
7579627986
result:
ok single line: '7579627986'
Test #17:
score: 0
Accepted
time: 0ms
memory: 4172kb
input:
3000 5 1 4 5 6 1 4 2 5 2 8 5 8 5 3 4 2 8 4 4 4 5 5 3 3 1 5 6 8 5 6 3 7 1 7 1 1 4 2 3 2 5 7 2 3 5 8 8 1 2 3 5 4 6 3 5 1 6 8 7 1 4 2 8 8 6 1 6 6 4 8 6 1 5 6 7 1 3 4 5 3 2 1 6 7 5 1 8 2 2 1 1 5 1 5 6 4 8 3 5 7 2 6 2 4 3 3 6 3 6 7 3 1 7 7 1 6 2 6 5 7 2 3 5 4 2 8 5 3 8 4 4 3 5 2 8 2 6 8 6 8 6 1 3 2 2 3 6...
output:
413798251628160
result:
ok single line: '413798251628160'
Test #18:
score: 0
Accepted
time: 14ms
memory: 3832kb
input:
3000 5 114 113 84 118 46 74 40 92 75 42 52 26 4 10 26 37 4 120 50 68 108 21 5 19 80 23 83 1 58 72 14 82 38 5 93 29 4 63 26 78 58 126 84 38 31 89 78 54 1 127 126 104 32 49 15 118 49 69 95 113 91 37 2 59 61 78 61 13 102 82 11 114 92 86 28 74 22 20 81 72 2 90 65 117 128 10 56 43 100 24 50 26 120 15 100...
output:
119198140387
result:
ok single line: '119198140387'
Test #19:
score: 0
Accepted
time: 11ms
memory: 4200kb
input:
3000 5 11 7 10 9 16 4 8 16 4 11 13 16 11 8 7 16 14 12 7 11 7 12 3 16 6 16 4 1 15 5 9 4 10 12 3 5 2 8 7 2 7 4 15 13 12 11 9 14 9 14 6 15 9 2 12 14 13 15 5 14 8 2 14 6 2 11 9 16 5 16 11 11 3 9 14 10 13 2 16 3 13 12 3 1 14 11 11 3 14 9 3 10 3 2 8 15 3 6 12 10 10 11 5 12 8 8 11 6 1 11 13 16 11 4 13 3 3 ...
output:
84285601680852
result:
ok single line: '84285601680852'
Test #20:
score: 0
Accepted
time: 2ms
memory: 3988kb
input:
3000 5 3 2 4 1 2 1 4 4 3 1 2 2 3 3 4 3 2 3 3 4 3 1 2 1 2 1 2 1 1 4 4 2 4 1 3 2 1 1 1 3 1 3 3 3 1 1 2 1 2 4 3 3 1 4 3 1 3 2 4 4 2 1 2 4 2 2 2 2 1 3 3 4 4 3 4 3 4 4 4 1 1 4 2 3 2 2 1 3 4 2 1 1 2 4 4 1 4 1 2 3 1 4 2 3 3 2 2 2 2 2 2 3 1 3 2 2 4 1 4 4 1 4 3 1 3 1 3 4 2 2 2 3 1 2 4 1 2 3 4 2 1 3 1 3 1 3 2...
output:
47328148839120
result:
ok single line: '47328148839120'
Test #21:
score: 0
Accepted
time: 274ms
memory: 4204kb
input:
3000 5 437 384 253 112 318 110 436 259 504 419 113 326 10 311 293 299 462 148 307 311 84 252 502 260 476 512 313 448 96 10 445 173 8 212 438 415 435 495 334 385 373 318 289 208 275 376 192 30 137 169 302 144 132 177 358 97 233 451 211 349 332 232 469 359 378 122 67 243 495 169 484 396 96 505 245 79 ...
output:
3896598873664
result:
ok single line: '3896598873664'
Test #22:
score: 0
Accepted
time: 0ms
memory: 4224kb
input:
3000 5 208 171 110 229 92 115 143 167 143 229 74 151 37 99 83 160 106 5 51 163 193 21 196 245 30 145 182 222 140 172 14 26 169 77 162 92 37 142 158 199 71 62 1 115 104 96 33 238 117 170 35 184 113 7 132 197 241 21 147 255 158 168 244 194 182 69 30 94 140 168 222 153 4 62 210 42 24 171 239 63 85 70 2...
output:
1941040299144768
result:
ok single line: '1941040299144768'
Test #23:
score: 0
Accepted
time: 19ms
memory: 4192kb
input:
3000 5 30 22 11 27 4 15 20 20 5 27 21 27 9 4 2 19 14 7 32 19 3 21 11 8 13 21 16 16 4 1 19 31 23 4 11 30 4 3 1 7 1 17 21 11 22 24 25 12 32 23 19 3 16 31 31 27 10 21 11 20 7 20 26 1 19 8 2 10 15 19 14 11 16 11 28 19 30 26 31 6 22 29 30 28 9 6 20 31 27 27 14 17 4 20 16 4 18 32 16 32 5 1 25 32 18 11 10 ...
output:
51818093663419
result:
ok single line: '51818093663419'
Test #24:
score: 0
Accepted
time: 0ms
memory: 4212kb
input:
3000 5 2 2 4 4 2 1 3 3 3 1 3 4 4 1 4 2 4 1 4 2 4 3 2 1 4 1 4 1 2 1 1 1 1 3 4 4 3 3 3 2 3 4 4 3 4 2 4 2 1 1 3 2 2 4 1 1 2 3 1 4 3 1 4 1 3 3 2 1 3 2 2 2 3 1 1 3 3 1 2 2 1 3 1 1 4 2 4 2 2 2 1 1 4 2 3 2 1 3 4 4 2 3 4 4 1 3 1 4 1 4 1 4 4 2 3 4 1 1 2 4 2 2 4 3 4 4 4 4 2 4 1 4 1 4 2 2 3 1 4 2 3 2 2 3 2 2 4...
output:
7952348547099
result:
ok single line: '7952348547099'
Test #25:
score: 0
Accepted
time: 3ms
memory: 4228kb
input:
3000 5 280 830 968 452 272 415 626 379 447 879 476 354 968 938 989 501 853 620 527 789 147 376 595 133 51 180 843 622 1003 683 223 475 755 265 185 318 649 291 712 233 621 109 449 918 357 257 921 736 443 543 524 967 442 167 794 816 52 929 388 611 255 181 339 907 371 179 82 570 238 13 655 994 336 856 ...
output:
1998780274934190
result:
ok single line: '1998780274934190'
Test #26:
score: 0
Accepted
time: 6ms
memory: 3720kb
input:
3000 5 8 26 26 28 22 10 3 32 30 14 11 18 13 8 22 1 1 19 30 16 14 26 17 21 29 29 17 27 8 19 18 32 32 3 31 23 7 10 21 8 22 24 5 11 24 18 23 17 13 18 2 27 8 2 21 32 18 5 17 12 5 15 13 27 17 7 17 2 26 12 27 7 24 13 29 4 21 16 28 8 19 12 19 21 4 14 14 3 16 24 16 28 18 29 13 30 27 7 16 28 14 18 23 29 2 14...
output:
1778055754312
result:
ok single line: '1778055754312'
Test #27:
score: 0
Accepted
time: 3ms
memory: 3980kb
input:
3000 5 2 3 1 4 2 3 1 3 2 4 2 3 3 4 1 2 3 4 2 4 1 4 2 3 3 2 3 4 3 4 3 4 2 4 2 4 4 3 3 2 2 4 3 2 2 1 2 2 3 1 4 2 2 1 1 4 2 2 2 1 1 4 2 2 1 2 1 4 4 4 4 1 4 4 3 1 3 1 2 2 4 4 4 4 1 1 3 1 3 2 3 2 1 1 2 1 1 1 2 1 2 1 3 1 4 4 1 1 3 2 3 2 4 2 3 3 2 2 4 3 3 3 2 4 4 2 1 3 1 3 2 2 2 2 4 4 3 1 1 4 1 3 3 3 2 1 3...
output:
47330818478900
result:
ok single line: '47330818478900'
Test #28:
score: 0
Accepted
time: 3ms
memory: 3996kb
input:
3000 5 2 3 3 2 4 4 4 3 1 2 1 3 1 2 4 3 2 2 4 1 2 2 3 2 4 2 4 1 3 2 1 2 1 1 3 4 2 2 1 1 2 2 4 4 3 4 2 2 1 4 2 2 3 1 1 2 1 3 1 1 4 1 1 4 4 4 2 4 3 2 1 3 3 4 2 3 3 4 3 2 3 4 3 4 4 1 3 4 1 1 4 3 1 2 3 3 2 4 4 1 3 3 4 4 3 2 3 4 4 2 3 3 4 1 3 4 4 3 4 3 4 4 3 2 4 4 1 3 3 2 2 3 2 1 3 1 2 2 4 1 3 4 2 2 1 3 2...
output:
23604313037880
result:
ok single line: '23604313037880'
Test #29:
score: 0
Accepted
time: 119ms
memory: 4188kb
input:
3000 5 664 1007 239 603 295 642 431 843 493 584 314 96 561 175 553 425 255 133 280 728 933 639 296 962 567 437 128 225 13 36 199 981 64 811 940 990 560 14 863 612 512 119 789 880 280 752 903 560 675 873 883 375 15 952 26 58 399 20 449 532 668 922 48 963 624 201 822 936 137 517 802 587 300 535 331 72...
output:
1890665394
result:
ok single line: '1890665394'
Test #30:
score: 0
Accepted
time: 22ms
memory: 4312kb
input:
3000 5 1135 591 1368 1905 1115 69 839 270 1033 1479 628 908 1604 1081 352 80 1630 800 844 1314 1197 165 1218 1198 778 537 10 1795 336 1131 437 534 483 1204 1303 576 1574 172 196 700 772 1841 794 1578 1384 199 1719 1807 1732 19 1791 83 398 607 1175 1473 1471 26 493 1162 1362 1365 1965 962 203 582 333...
output:
149699
result:
ok single line: '149699'
Test #31:
score: 0
Accepted
time: 99ms
memory: 3816kb
input:
3000 5 856 584 898 166 818 756 334 51 515 949 233 480 357 305 335 899 468 913 668 697 814 770 659 352 313 54 282 539 29 224 188 210 230 60 806 815 515 900 426 289 970 636 447 349 242 999 382 472 791 527 39 78 825 833 666 703 573 590 991 1004 363 780 414 990 750 723 167 96 599 257 364 384 283 886 130...
output:
1827464
result:
ok single line: '1827464'
Test #32:
score: 0
Accepted
time: 4ms
memory: 3760kb
input:
3000 5 6 6 9 2 9 7 1 3 15 12 15 3 5 9 9 1 9 6 10 15 16 1 15 5 16 10 8 13 7 6 13 5 2 13 6 16 7 12 2 5 12 4 1 14 13 9 10 11 10 3 6 13 6 16 3 11 9 16 2 16 15 8 8 11 8 16 1 13 6 5 9 15 1 8 1 9 6 12 16 12 4 12 15 9 14 3 12 8 12 2 8 2 9 13 9 7 6 14 9 9 6 1 4 15 16 6 14 3 1 3 11 5 7 15 5 5 6 8 10 12 7 14 1...
output:
472159866629
result:
ok single line: '472159866629'
Test #33:
score: 0
Accepted
time: 3ms
memory: 4204kb
input:
3000 5 93 72 23 27 2 79 47 119 78 72 5 13 2 94 83 16 116 111 41 42 14 14 107 119 77 2 81 7 66 70 102 95 21 7 10 120 125 41 112 63 73 67 32 20 90 30 118 75 38 57 33 46 55 72 37 120 42 49 90 91 49 13 106 124 17 45 87 114 37 19 114 74 89 116 101 6 47 61 43 25 62 11 18 108 46 49 64 93 61 54 43 59 61 84 ...
output:
7236668
result:
ok single line: '7236668'
Test #34:
score: 0
Accepted
time: 2ms
memory: 3888kb
input:
3000 5 17 197 733 272 2239 1810 2405 1030 725 1442 2983 110 1710 906 2921 2527 2636 1841 2362 310 2462 2830 526 2334 279 2950 238 2500 1331 1440 2604 1734 1816 2888 1766 198 106 1514 2514 1467 1815 2113 1900 2668 1612 2665 42 1200 2711 1170 1249 315 1577 503 744 1034 791 747 232 146 2361 2900 2228 1...
output:
0
result:
ok single line: '0'
Test #35:
score: 0
Accepted
time: 2ms
memory: 3824kb
input:
3000 5 2084 2096 1680 2085 1531 1642 533 1473 588 2312 2260 2357 2983 1630 1561 2633 644 1598 945 44 1052 1176 2993 105 710 1109 1294 1992 2133 2252 1663 698 182 502 1304 1299 1093 873 489 329 2658 2748 2159 1452 1065 2058 2021 2763 2556 76 2170 1091 1288 101 574 234 1328 2125 2276 830 1362 2877 283...
output:
0
result:
ok single line: '0'
Test #36:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
3000 5 1488 1877 1589 1093 208 1042 2431 314 194 1576 2938 2556 1581 2813 2983 253 371 404 438 2126 79 2386 1092 923 829 1057 2883 687 1586 1855 2605 1088 1680 2017 1662 1652 2558 824 955 877 1508 976 1763 2800 870 160 1409 1918 2335 939 586 2533 77 219 1862 1323 239 430 20 1143 2985 948 1630 2659 9...
output:
0
result:
ok single line: '0'
Test #37:
score: 0
Accepted
time: 2ms
memory: 3868kb
input:
3000 5 2074 1169 70 808 2218 1174 2886 2505 779 1697 284 105 388 1590 1775 1776 1843 2636 2337 1522 2939 348 229 719 1925 43 2091 1525 2269 2266 204 1912 1173 862 2985 1299 911 1709 996 1710 1563 937 2062 2447 1695 310 2144 2093 2321 369 2168 122 2239 24 1915 1447 52 244 181 2701 1622 2890 2113 990 ...
output:
0
result:
ok single line: '0'
Test #38:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
3000 5 2080 2111 1381 1231 2144 273 2399 2985 1025 785 2707 1119 1645 2487 225 2313 1439 105 958 221 2227 2550 629 98 10 1976 1176 1101 268 2043 2885 1453 923 121 2563 436 690 2374 2262 144 13 57 1315 976 915 663 25 1192 1279 2774 2481 1471 2538 2396 1603 1989 457 837 188 2391 2281 1146 768 2229 283...
output:
0
result:
ok single line: '0'
Test #39:
score: 0
Accepted
time: 204ms
memory: 4240kb
input:
3000 5 1111 1043 1465 170 874 275 813 1081 430 1377 287 411 1386 610 837 1120 59 123 995 546 335 795 359 950 904 21 798 1261 1317 516 502 210 477 1089 23 523 780 736 739 673 722 432 125 1484 1192 1495 214 1425 585 1297 882 1453 71 925 314 382 693 675 606 1246 338 1151 201 188 348 1203 614 658 544 29...
output:
0
result:
ok single line: '0'
Test #40:
score: 0
Accepted
time: 38ms
memory: 4292kb
input:
3000 5 177 756 1226 911 811 186 729 1412 1012 1394 1262 936 568 293 978 930 59 705 433 1407 365 954 1000 1387 23 565 298 253 881 805 350 1006 424 554 579 777 642 685 995 222 549 164 1356 675 393 1113 188 574 681 336 976 1468 1206 885 1500 1357 730 1440 251 1325 799 1288 794 1455 903 1480 131 420 131...
output:
0
result:
ok single line: '0'
Test #41:
score: 0
Accepted
time: 166ms
memory: 3844kb
input:
3000 5 1193 723 516 1496 406 411 173 546 1453 571 231 343 592 342 427 278 1472 364 1234 1312 1284 224 860 446 778 515 158 581 658 1006 582 1404 1107 63 1012 910 66 321 1368 25 1354 409 422 730 1286 854 981 64 1299 12 908 435 1261 399 952 655 920 1240 1442 1070 836 1115 1323 116 709 552 281 949 1158 ...
output:
0
result:
ok single line: '0'
Test #42:
score: 0
Accepted
time: 165ms
memory: 3776kb
input:
3000 5 53 1368 794 1202 1469 497 443 617 1434 262 354 917 870 1495 996 1202 530 1126 233 135 238 562 1425 1165 1388 529 748 1408 9 1490 1461 1001 325 187 396 1292 4 1168 284 252 278 1472 1074 195 105 183 1421 53 27 1328 126 500 1152 274 660 919 400 107 432 828 753 1031 941 1107 889 939 1471 817 713 ...
output:
0
result:
ok single line: '0'
Test #43:
score: 0
Accepted
time: 704ms
memory: 4224kb
input:
3000 5 653 27 358 1216 94 397 657 69 1446 199 413 1369 157 1089 386 1433 1298 1407 989 916 1289 846 1373 1036 1439 1047 1070 938 58 376 1219 908 215 1316 392 1066 746 1465 1199 646 1396 316 1367 519 160 1016 779 1296 957 1140 98 1391 1235 1307 997 263 180 1249 1498 1394 249 951 190 1062 980 917 1189...
output:
664842652954
result:
ok single line: '664842652954'
Test #44:
score: 0
Accepted
time: 105ms
memory: 3748kb
input:
3000 5 154 14 993 354 973 634 728 760 16 392 27 543 741 488 625 35 686 13 187 404 648 228 915 738 316 295 534 413 127 260 633 93 864 643 504 306 461 108 339 446 376 653 999 502 47 810 767 498 726 219 596 175 398 86 642 809 971 421 77 863 174 943 335 257 664 592 604 489 187 267 921 213 672 949 801 26...
output:
299087
result:
ok single line: '299087'
Test #45:
score: 0
Accepted
time: 29ms
memory: 4184kb
input:
3000 5 581 853 68 962 517 437 186 469 24 170 427 578 384 312 855 125 676 709 383 983 95 110 922 326 313 382 975 748 372 61 356 693 655 169 535 754 589 454 129 997 666 828 131 264 25 510 248 85 543 944 525 91 438 17 443 277 742 64 780 272 509 27 152 297 419 648 512 26 898 644 145 391 609 804 447 2 52...
output:
0
result:
ok single line: '0'
Test #46:
score: 0
Accepted
time: 101ms
memory: 3736kb
input:
3000 5 743 399 398 125 822 598 773 215 871 895 172 905 645 167 592 777 68 874 61 223 685 784 377 514 198 426 206 533 216 452 111 469 593 757 795 934 622 604 960 451 732 62 338 51 148 176 560 86 492 559 632 383 378 106 246 126 892 863 962 88 627 939 66 835 318 3 600 122 97 410 741 543 771 641 1 802 7...
output:
302897
result:
ok single line: '302897'
Test #47:
score: 0
Accepted
time: 114ms
memory: 3720kb
input:
3000 5 843 801 488 207 517 171 869 499 698 165 91 855 474 615 392 32 793 244 664 276 653 547 920 938 688 87 436 516 444 899 537 808 3 907 820 94 887 347 179 49 323 201 580 145 734 402 159 766 582 182 746 289 591 239 434 125 393 538 487 160 98 483 916 93 188 910 440 283 428 258 623 63 16 155 732 938 ...
output:
295625
result:
ok single line: '295625'
Test #48:
score: 0
Accepted
time: 109ms
memory: 3836kb
input:
3000 5 836 92 486 590 194 806 647 680 360 784 682 158 802 911 449 801 717 316 503 210 786 863 902 61 992 802 986 346 848 623 19 579 558 719 372 971 583 298 443 120 161 164 994 562 680 481 635 312 421 965 890 266 511 407 457 863 39 811 881 932 468 262 237 616 505 258 106 410 268 434 942 592 858 170 1...
output:
895722552
result:
ok single line: '895722552'
Test #49:
score: 0
Accepted
time: 101ms
memory: 4188kb
input:
3000 5 584 440 564 674 711 123 250 14 576 267 194 504 156 698 607 462 143 283 11 643 647 463 682 210 147 429 25 143 411 326 483 140 737 535 569 629 132 183 170 659 45 594 300 629 334 284 154 517 606 494 86 694 9 712 229 224 306 407 403 219 387 549 182 689 438 541 70 622 140 664 367 381 162 201 64 28...
output:
1344611110
result:
ok single line: '1344611110'
Test #50:
score: 0
Accepted
time: 76ms
memory: 3728kb
input:
3000 5 645 188 407 196 509 361 292 288 351 226 739 606 213 302 193 630 394 124 30 694 103 328 504 392 10 527 341 119 117 657 305 748 375 85 337 23 573 174 186 113 704 165 570 700 241 720 238 283 201 274 599 65 614 610 381 612 443 141 725 603 264 674 262 534 552 358 588 384 745 20 744 245 112 722 180...
output:
1348233
result:
ok single line: '1348233'
Test #51:
score: 0
Accepted
time: 77ms
memory: 3756kb
input:
3000 5 743 278 249 668 653 445 392 259 525 54 470 282 335 147 442 388 127 457 309 548 155 41 156 730 343 376 370 51 559 704 243 71 63 187 230 436 735 83 474 125 148 58 29 26 746 654 378 151 517 737 317 606 271 480 702 55 700 65 356 509 338 62 94 287 60 372 126 164 741 101 135 491 506 181 372 431 242...
output:
1324462
result:
ok single line: '1324462'
Test #52:
score: 0
Accepted
time: 81ms
memory: 3760kb
input:
3000 5 201 641 446 655 389 150 464 40 714 508 85 640 648 455 449 384 5 132 153 488 500 238 8 637 587 169 419 687 271 375 301 103 394 527 20 605 106 728 197 270 532 340 245 387 163 477 139 405 651 471 656 525 556 486 55 379 287 202 365 357 77 1 57 496 493 578 48 578 320 122 125 670 244 523 27 317 174...
output:
1318769
result:
ok single line: '1318769'
Test #53:
score: 0
Accepted
time: 81ms
memory: 3736kb
input:
3000 5 538 681 556 696 249 415 596 702 172 70 241 425 731 104 80 505 31 570 247 698 643 253 393 374 617 189 246 29 279 157 632 413 165 553 79 55 188 274 16 447 638 723 591 463 113 21 606 292 333 606 124 497 97 560 631 53 230 182 629 645 449 393 327 434 487 486 310 110 513 657 372 716 93 468 373 484 ...
output:
2032053802
result:
ok single line: '2032053802'
Test #54:
score: 0
Accepted
time: 81ms
memory: 4232kb
input:
3000 5 566 534 577 183 144 583 293 530 513 8 383 100 55 117 386 537 281 225 337 332 557 255 582 579 448 539 476 320 448 147 224 536 378 215 350 599 226 1 488 415 290 162 310 169 76 75 501 305 178 101 41 167 554 114 50 272 15 128 166 231 232 169 348 16 267 338 257 500 311 101 103 510 520 138 265 204 ...
output:
2665693921
result:
ok single line: '2665693921'
Test #55:
score: 0
Accepted
time: 71ms
memory: 3756kb
input:
3000 5 103 485 326 257 527 366 254 507 129 378 103 194 358 137 273 104 219 559 232 378 51 63 587 339 274 361 339 146 228 596 324 336 438 54 590 542 77 476 563 9 65 422 263 69 214 299 261 320 107 496 269 194 530 509 379 535 164 392 329 470 10 355 68 243 513 406 440 9 340 506 522 370 445 87 428 181 14...
output:
3595928
result:
ok single line: '3595928'
Test #56:
score: 0
Accepted
time: 65ms
memory: 3768kb
input:
3000 5 217 278 208 433 454 21 382 99 237 472 260 39 111 29 77 297 38 160 231 349 33 536 174 7 79 453 81 290 246 400 131 397 533 380 18 74 14 46 202 421 139 312 525 358 225 48 470 184 531 441 310 571 537 139 301 574 50 406 38 64 530 280 508 552 282 126 104 466 366 438 380 335 463 435 294 538 269 245 ...
output:
3681532
result:
ok single line: '3681532'
Test #57:
score: 0
Accepted
time: 19ms
memory: 4212kb
input:
3000 5 328 24 573 145 486 169 484 85 204 121 269 368 466 549 35 374 218 75 200 13 171 529 494 219 457 127 366 520 582 427 540 194 246 533 476 107 262 417 593 315 75 456 45 260 279 232 521 87 58 213 193 182 471 75 584 122 475 463 434 161 378 180 54 268 198 341 578 505 458 24 69 364 524 125 376 94 219...
output:
1755278
result:
ok single line: '1755278'
Test #58:
score: 0
Accepted
time: 285ms
memory: 4280kb
input:
3000 5 587 78 71 299 599 390 234 109 147 375 591 273 39 50 218 594 370 267 397 49 12 300 223 370 161 238 90 453 286 491 502 451 554 563 346 40 341 318 404 313 192 186 463 368 101 366 365 91 503 216 547 254 433 555 175 461 596 395 304 93 492 271 569 236 221 512 50 395 322 247 362 486 171 189 160 345 ...
output:
2665150295478
result:
ok single line: '2665150295478'
Test #59:
score: 0
Accepted
time: 62ms
memory: 3832kb
input:
3000 4 237 78 251 58 378 563 591 411 504 283 412 426 592 369 346 429 209 130 429 436 235 531 495 285 74 577 573 573 443 573 313 40 199 75 378 436 53 87 11 44 163 347 261 231 384 106 340 473 299 600 153 60 430 103 503 136 398 197 488 22 543 476 269 238 325 600 137 34 465 553 527 241 9 505 563 256 474...
output:
5972564
result:
ok single line: '5972564'
Test #60:
score: 0
Accepted
time: 0ms
memory: 4208kb
input:
3000 4 498 212 218 17 465 286 192 474 184 126 575 335 592 199 332 285 284 274 132 438 154 23 188 590 546 206 500 400 599 327 554 366 110 350 97 280 80 121 102 116 372 540 20 389 322 355 288 233 524 117 200 315 373 479 164 269 418 86 312 571 196 114 385 142 407 557 230 429 295 217 156 302 286 208 175...
output:
3341353031250
result:
ok single line: '3341353031250'
Test #61:
score: 0
Accepted
time: 11ms
memory: 4168kb
input:
3000 3 146 339 259 295 157 236 77 94 284 178 102 261 596 42 547 385 542 370 234 145 501 437 547 191 403 507 470 405 11 171 409 361 449 277 571 186 182 524 102 69 461 446 2 123 509 161 377 321 530 590 5 245 116 5 453 82 55 143 216 368 146 416 16 570 431 497 220 347 428 291 344 494 410 290 487 100 481...
output:
5957020
result:
ok single line: '5957020'
Test #62:
score: 0
Accepted
time: 2ms
memory: 4228kb
input:
3000 4 186 464 325 452 188 476 421 484 523 559 349 14 392 437 215 102 140 385 13 141 12 147 414 229 523 168 71 594 329 153 382 528 177 90 444 479 89 334 361 495 69 506 107 244 297 590 541 586 179 384 403 177 570 103 98 347 310 57 522 435 330 448 161 15 299 534 512 148 131 415 318 165 526 425 395 115...
output:
3341353031250
result:
ok single line: '3341353031250'
Test #63:
score: 0
Accepted
time: 14ms
memory: 4244kb
input:
3000 3 165 448 71 417 88 500 393 44 345 138 209 413 170 188 38 205 480 274 323 529 112 437 319 512 398 240 570 438 90 143 519 351 24 237 218 250 422 515 245 229 123 529 160 590 247 18 428 351 448 362 6 64 234 337 180 43 459 292 465 419 467 457 75 298 524 424 540 331 184 267 228 508 442 422 22 198 57...
output:
6039703
result:
ok single line: '6039703'
Test #64:
score: 0
Accepted
time: 13ms
memory: 4188kb
input:
3000 2 7 414 125 337 132 408 261 413 345 312 223 62 557 571 145 296 247 129 241 216 268 352 196 237 543 56 553 336 88 230 173 562 177 28 102 518 283 454 171 539 289 372 387 141 136 25 49 559 256 332 362 561 185 46 308 178 406 404 153 15 337 212 390 30 432 593 468 549 267 170 23 111 55 268 377 424 22...
output:
6000
result:
ok single line: '6000'
Test #65:
score: 0
Accepted
time: 18ms
memory: 4220kb
input:
3000 4 74 94 152 522 128 174 161 451 307 455 528 353 530 263 387 94 483 434 299 554 194 4 495 112 288 348 510 360 577 285 408 577 297 517 313 344 20 395 394 313 325 453 102 572 309 126 130 170 416 458 547 246 311 552 536 544 210 118 39 86 519 275 280 345 461 574 9 283 218 302 571 340 104 528 553 214...
output:
3000
result:
ok single line: '3000'
Test #66:
score: 0
Accepted
time: 3ms
memory: 4192kb
input:
3000 2 526 69 442 369 40 149 294 130 295 249 554 328 528 482 541 330 30 481 117 399 262 539 217 243 329 497 116 177 379 564 275 426 550 187 141 226 221 354 549 383 73 211 72 190 177 235 31 115 328 200 75 225 259 334 2 587 584 178 413 91 144 274 359 215 151 340 302 315 101 116 89 298 220 244 380 281 ...
output:
4492500
result:
ok single line: '4492500'
Test #67:
score: 0
Accepted
time: 10ms
memory: 4224kb
input:
3000 4 372 241 106 386 111 506 492 580 361 252 84 519 363 174 57 15 104 420 85 528 232 134 349 552 347 202 511 239 564 366 63 582 464 405 41 309 431 68 200 401 572 226 563 233 222 339 598 118 54 11 162 408 587 539 142 573 158 409 67 76 102 288 295 125 500 598 481 286 74 400 361 24 293 371 356 416 43...
output:
3000
result:
ok single line: '3000'
Test #68:
score: 0
Accepted
time: 61ms
memory: 3768kb
input:
3000 4 395 473 4 220 462 278 317 433 377 484 184 245 86 390 376 85 337 124 437 273 222 199 360 138 597 421 31 18 103 84 514 463 375 253 450 420 557 228 214 508 315 185 452 272 302 46 430 107 252 280 297 93 457 343 188 370 326 52 512 254 562 346 506 486 284 178 401 436 260 438 440 37 406 208 76 171 2...
output:
6047620
result:
ok single line: '6047620'
Test #69:
score: 0
Accepted
time: 18ms
memory: 4232kb
input:
3000 4 322 388 67 81 385 540 394 128 341 308 323 276 422 292 15 449 237 97 11 315 109 297 9 498 394 580 351 323 344 123 494 304 376 516 256 324 29 172 51 68 244 131 133 76 443 24 281 90 194 228 419 537 232 316 421 196 504 541 484 316 156 259 262 567 290 253 162 549 456 268 364 270 477 41 253 184 209...
output:
3000
result:
ok single line: '3000'
Test #70:
score: 0
Accepted
time: 62ms
memory: 3752kb
input:
3000 4 522 105 330 194 423 584 195 581 521 76 407 431 90 274 383 52 19 519 359 587 85 86 81 511 367 451 458 342 304 503 271 572 24 493 84 41 39 227 580 462 266 275 3 595 447 294 354 111 590 52 129 267 440 146 137 9 253 429 95 376 365 95 379 299 530 292 9 255 157 222 329 303 37 535 100 205 112 70 50 ...
output:
6032564
result:
ok single line: '6032564'
Test #71:
score: 0
Accepted
time: 14ms
memory: 4224kb
input:
3000 4 423 533 218 496 218 279 512 515 195 30 531 429 124 401 475 407 472 390 173 539 406 484 196 92 214 357 503 389 298 356 40 160 559 357 276 314 280 340 178 554 116 329 236 268 230 570 510 240 125 334 408 301 38 569 473 424 375 522 331 339 214 282 426 486 198 202 134 379 5 15 328 570 415 455 460 ...
output:
3000
result:
ok single line: '3000'
Test #72:
score: 0
Accepted
time: 15ms
memory: 4216kb
input:
3000 3 272 335 496 85 163 455 501 524 375 433 187 250 287 314 558 516 509 449 192 470 42 119 533 409 560 304 557 37 382 539 463 279 571 24 192 584 161 408 206 292 240 45 335 205 440 313 43 310 252 2 305 20 403 136 468 539 282 301 481 166 567 422 371 157 498 460 356 520 428 579 407 568 474 89 377 103...
output:
6075278
result:
ok single line: '6075278'
Test #73:
score: 0
Accepted
time: 2ms
memory: 4300kb
input:
3000 4 582 410 475 182 532 144 27 280 60 515 116 205 94 266 90 576 179 495 37 56 484 88 275 276 213 543 425 252 127 150 470 352 298 246 144 502 112 353 252 25 282 259 587 444 61 21 487 290 25 506 238 535 102 110 379 103 394 37 554 70 32 55 527 434 538 572 107 385 48 393 63 555 325 559 414 150 210 38...
output:
3341353031250
result:
ok single line: '3341353031250'
Test #74:
score: 0
Accepted
time: 2ms
memory: 4204kb
input:
3000 3 8 545 266 13 93 599 20 489 130 104 413 25 505 281 487 341 372 178 490 448 571 502 254 560 486 238 520 314 136 319 407 250 540 434 586 55 323 148 39 114 163 543 16 26 432 354 233 539 307 262 509 510 17 20 104 62 561 38 71 252 337 494 83 140 225 151 347 561 274 465 293 55 111 381 56 249 418 539...
output:
4477525000
result:
ok single line: '4477525000'
Test #75:
score: 0
Accepted
time: 2ms
memory: 4228kb
input:
3000 2 578 466 202 201 441 80 270 151 516 526 569 600 477 420 142 182 388 594 416 292 293 44 274 250 214 532 55 513 370 344 56 122 428 110 376 260 152 256 555 164 285 162 501 492 506 55 88 408 553 550 578 117 129 450 52 83 3 44 461 359 97 32 572 149 319 280 559 265 474 171 500 422 434 336 298 121 41...
output:
4492500
result:
ok single line: '4492500'
Test #76:
score: 0
Accepted
time: 14ms
memory: 4216kb
input:
3000 4 342 8 275 419 417 533 46 62 363 588 45 1 84 211 356 307 375 56 209 14 277 76 24 167 409 278 324 305 572 295 253 430 598 141 297 146 432 184 334 74 476 213 267 460 436 279 511 243 26 445 231 411 86 508 471 575 544 162 525 509 249 485 250 437 193 170 298 490 342 544 3 395 447 20 266 562 355 511...
output:
3000
result:
ok single line: '3000'
Test #77:
score: 0
Accepted
time: 2ms
memory: 4216kb
input:
3000 2 471 541 402 423 577 155 490 204 581 53 37 447 117 222 384 430 111 533 574 96 99 386 283 457 230 79 112 544 449 248 493 570 364 139 296 49 188 203 206 45 34 303 503 258 579 284 499 395 543 327 314 165 181 109 108 13 581 81 57 368 455 189 522 268 117 600 489 397 579 490 87 469 188 137 384 300 3...
output:
4492500
result:
ok single line: '4492500'
Test #78:
score: 0
Accepted
time: 2ms
memory: 4224kb
input:
3000 3 211 551 254 431 4 64 451 82 322 591 247 270 60 481 412 424 392 232 141 266 180 396 491 134 127 96 220 147 279 579 245 129 103 315 322 219 560 428 425 8 457 548 502 409 539 588 121 450 399 258 128 502 489 168 276 344 531 380 363 191 526 31 218 64 142 102 502 384 537 462 396 304 151 428 582 57 ...
output:
4477525000
result:
ok single line: '4477525000'
Test #79:
score: 0
Accepted
time: 1ms
memory: 4236kb
input:
3000 1 459 569 370 495 478 594 302 112 101 386 478 141 585 375 527 342 447 164 144 538 367 432 490 582 60 556 397 81 554 268 108 577 159 155 43 64 308 226 430 416 281 286 54 495 489 512 327 349 105 282 100 517 443 520 423 262 264 176 439 518 265 214 565 452 520 194 324 412 83 412 411 16 573 229 202 ...
output:
3000
result:
ok single line: '3000'
Test #80:
score: 0
Accepted
time: 17ms
memory: 4216kb
input:
3000 4 352 257 61 208 494 446 543 580 518 46 348 555 333 263 234 230 265 422 462 453 143 563 9 23 410 135 246 307 38 146 80 252 167 29 4 339 436 538 84 432 137 157 111 170 460 17 502 239 241 579 504 148 245 551 521 159 447 213 326 5 472 464 467 1 198 289 166 298 545 525 484 177 140 79 325 457 464 12...
output:
4501482
result:
ok single line: '4501482'
Test #81:
score: 0
Accepted
time: 77ms
memory: 4224kb
input:
3000 4 197 185 279 557 184 430 226 260 73 241 470 302 206 113 486 390 513 79 488 133 580 66 134 370 289 402 435 223 428 299 86 462 216 25 302 21 251 365 286 342 516 201 190 543 570 247 475 387 75 389 344 368 503 264 355 44 386 169 582 225 447 134 76 132 312 326 69 521 581 172 552 497 240 62 506 430 ...
output:
4526477479
result:
ok single line: '4526477479'
Test #82:
score: 0
Accepted
time: 15ms
memory: 4204kb
input:
3000 3 215 508 316 234 377 101 512 196 420 11 250 218 345 285 124 72 462 49 581 113 120 411 298 68 452 104 188 403 470 147 413 396 205 207 196 198 575 472 461 550 300 154 206 535 449 456 282 268 265 489 348 78 519 18 198 480 386 451 301 190 200 187 463 303 511 181 170 116 92 327 315 416 320 112 303 ...
output:
6000
result:
ok single line: '6000'
Test #83:
score: 0
Accepted
time: 76ms
memory: 4300kb
input:
3000 4 379 385 188 189 572 191 591 90 298 389 142 508 461 536 457 77 411 92 599 452 100 368 1 336 16 221 478 519 485 322 277 399 474 380 525 395 546 556 594 586 476 536 493 359 566 61 42 20 179 549 50 550 277 411 583 564 473 422 347 577 95 519 466 35 285 176 95 340 84 109 506 333 198 106 502 517 385...
output:
4459969468
result:
ok single line: '4459969468'
Test #84:
score: 0
Accepted
time: 10ms
memory: 4300kb
input:
3000 3 320 222 392 303 190 422 466 175 47 50 36 408 240 510 547 274 316 59 283 417 519 269 125 135 154 143 210 571 515 431 253 205 188 69 430 183 485 138 377 525 122 586 309 118 11 417 522 518 512 448 530 598 244 91 308 373 173 11 226 34 501 539 133 382 124 84 491 552 137 228 446 540 87 141 403 518 ...
output:
6000
result:
ok single line: '6000'
Test #85:
score: 0
Accepted
time: 1ms
memory: 4292kb
input:
3000 3 157 571 96 57 133 387 469 548 17 103 357 289 281 596 148 588 378 88 393 277 528 142 564 196 413 178 8 38 70 314 258 486 454 22 20 337 85 237 89 511 473 587 402 520 356 307 414 324 296 525 471 340 150 373 244 355 439 589 230 78 306 231 67 586 541 210 256 172 451 2 296 444 3 52 206 34 376 232 4...
output:
4477525000
result:
ok single line: '4477525000'
Test #86:
score: 0
Accepted
time: 1ms
memory: 4208kb
input:
3000 2 539 149 428 103 501 10 593 467 533 47 569 264 111 594 380 508 188 562 360 142 236 280 205 178 182 406 432 238 215 340 162 550 159 295 364 211 259 23 448 499 391 111 366 210 240 12 447 548 309 448 389 258 124 557 165 368 211 146 11 451 598 237 383 547 484 88 26 186 202 385 170 551 496 180 49 5...
output:
4492500
result:
ok single line: '4492500'
Test #87:
score: 0
Accepted
time: 3ms
memory: 4212kb
input:
3000 3 294 388 59 458 18 587 348 525 504 162 547 265 135 379 150 415 567 207 534 480 360 181 376 137 292 480 426 32 174 439 168 585 160 309 507 125 60 260 6 179 577 183 150 95 45 226 512 327 306 282 453 227 436 165 464 195 1 556 91 343 23 151 168 291 190 311 490 143 552 555 497 356 518 213 361 49 27...
output:
4477525000
result:
ok single line: '4477525000'
Test #88:
score: 0
Accepted
time: 10ms
memory: 4224kb
input:
3000 3 165 302 537 533 354 324 547 519 277 124 304 111 269 69 519 484 72 436 173 213 149 566 23 47 473 92 526 134 437 401 504 593 298 426 564 136 490 324 85 444 592 576 591 410 501 296 416 312 350 107 482 107 374 236 243 183 583 189 321 142 412 224 143 472 267 597 265 496 69 487 555 55 13 217 578 46...
output:
6000
result:
ok single line: '6000'
Test #89:
score: 0
Accepted
time: 2ms
memory: 3700kb
input:
1 1 1 1
output:
1
result:
ok single line: '1'