QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#186357#4815. Flower's LandmekoszcWA 1206ms945016kbC++141.8kb2023-09-23 18:11:062023-09-23 18:11:07

详细

Test #1:

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

input:

5 3
6 10 4 3 4
3 4
4 2
2 5
5 1

output:

20 20 17 17 20 

result:

ok 5 number(s): "20 20 17 17 20"

Test #2:

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

input:

7 4
1 3 2 1 7 12 17
4 6
1 4
5 1
2 5
7 6
3 2

output:

31 13 13 31 21 31 31 

result:

ok 7 numbers

Test #3:

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

input:

1 1
20

output:

20 

result:

ok 1 number(s): "20"

Test #4:

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

input:

10 3
19 7 25 18 93 97 21 51 60 80
6 7
7 1
1 9
9 10
10 2
2 5
5 3
3 8
8 4

output:

159 180 169 94 180 137 137 169 159 180 

result:

ok 10 numbers

Test #5:

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

input:

20 3
932 609 248 720 831 253 418 482 1000 542 436 304 217 163 872 380 704 845 497 610
17 12
1 17
15 17
13 17
2 15
16 2
18 16
8 16
4 16
19 4
6 4
20 19
10 19
9 10
5 10
7 9
3 9
14 5
11 7

output:

2508 2185 1790 1945 2373 1470 1960 1707 2373 2373 1854 1940 1853 1536 2508 1945 2508 1945 2039 1827 

result:

ok 20 numbers

Test #6:

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

input:

40 5
1105 1687 737 6321 7793 7325 3443 2983 6912 6304 4211 5325 7774 7857 5121 8331 9317 1042 8291 9698 7373 440 9788 7938 7191 5563 4554 596 9733 4920 5398 3642 844 5733 4048 4417 8279 3054 4596 3153
12 17
12 36
12 15
12 13
12 2
12 30
12 18
12 33
12 4
12 39
12 25
12 20
12 10
12 9
12 23
12 29
12 3
1...

output:

35649 36231 35281 40865 42337 41869 37987 37527 41456 40848 38755 43861 42318 42401 39665 42875 43861 35586 42835 43861 41917 34984 43861 42482 41735 40107 39098 35140 43861 39464 39942 38186 35388 40277 38592 38961 42823 37598 39140 37697 

result:

ok 40 numbers

Test #7:

score: 0
Accepted
time: 2ms
memory: 10060kb

input:

100 10
11845 7520 37311 70194 67214 68176 40075 13721 13118 2555 27023 65012 36716 47598 62807 83049 95169 73454 955 72471 72461 38753 7766 53638 20670 21008 37771 97099 75063 80585 66232 33603 92301 21230 20888 96576 51530 90712 95603 93535 59988 78079 96958 42006 35041 22283 35258 7871 45967 7101 ...

output:

777955 640628 803421 836304 843042 834286 806185 779831 579059 768665 688155 851049 812544 813708 791287 836304 836304 849282 767065 848299 848289 804863 773876 829466 485824 579059 803881 614459 579059 627078 585962 735460 564264 614459 688155 836304 827358 836304 851049 792569 616369 851049 792569...

result:

ok 100 numbers

Test #8:

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

input:

200 30
332408 397037 98648 388661 351913 146463 354518 148254 131018 214842 465228 340704 397726 443065 248835 223274 239234 260094 420186 444939 5604 433696 253672 122804 20775 178018 260524 40342 259288 399226 146027 273111 141307 489658 150962 170539 339581 10624 479316 460184 467714 261732 46024...

output:

8467030 8324860 9617392 8550455 8359951 8715141 9584815 9799514 10012956 8550455 10066359 8550455 8550455 8986218 8986218 8825653 8762772 8550455 9726253 8550455 8467030 8825653 8839704 10066359 8986218 10066359 8304862 9639651 9859760 9617392 8868772 8514159 9426790 9859760 8498063 8986218 8324860 ...

result:

ok 200 numbers

Test #9:

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

input:

500 50
431046 133020 268267 491421 73671 392721 149244 135041 434815 18486 70564 263715 274349 404449 348097 483453 364113 43751 27061 195734 120574 431695 191727 280919 428553 367375 451076 52558 252110 455439 202418 248384 458283 190737 59309 282145 401725 53022 493885 265157 92783 353158 80778 61...

output:

20366165 20099795 19698680 20229707 19306723 20227402 19782211 19051032 20375973 19885123 19259866 19076748 19704511 19762890 20156234 20375973 19233722 19835639 19446421 19762890 20087277 20060994 20200319 20289511 19712344 20032061 20404625 20061150 20404625 19548733 19821412 20256976 19521113 201...

result:

ok 500 numbers

Test #10:

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

input:

500 400
33910 461235 315800 145874 343269 175059 408612 221965 16340 2515 422955 234650 187046 423377 294201 99471 64827 13512 85115 266243 210853 339475 64307 195988 40756 267621 410907 96760 299062 16226 151894 344109 341276 300471 249190 495402 144975 357953 143882 203217 15918 285363 167985 2374...

output:

113072802 113172097 113172097 113172097 113172097 113172097 113172097 113172097 113055232 113041407 113172097 113172097 113171926 113172097 113172097 113138363 113103719 113172097 113124007 113172097 113172097 113172097 113103199 113171926 113079648 113172097 113172097 113172097 113172097 113055118 ...

result:

ok 500 numbers

Test #11:

score: 0
Accepted
time: 2ms
memory: 18204kb

input:

500 490
117374 249369 65444 455139 404356 129652 168404 56937 1697 345028 216885 481757 311538 289421 132904 325897 155999 425799 289231 139118 371316 184647 461098 302736 394189 414790 76013 112329 470253 126627 36943 484399 60053 366699 449169 124581 468634 52694 216412 122134 230370 484278 136219...

output:

122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 122937414 ...

result:

ok 500 numbers

Test #12:

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

input:

500 500
431210 77070 4168 286007 179851 418354 12453 99059 192427 481988 368024 145623 134091 338569 209592 464774 172050 82103 247518 197687 218054 253957 188842 373155 374232 189211 7096 367467 416866 264229 128219 200393 183624 64102 172463 382229 1546 245952 67110 191276 112904 60576 21745 83247...

output:

120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 120249891 ...

result:

ok 500 numbers

Test #13:

score: 0
Accepted
time: 7ms
memory: 77816kb

input:

3000 2000
340027 415811 82817 134561 419447 365926 381133 23095 144595 26419 34153 489015 151446 273203 228955 325803 437286 326169 35163 295198 302964 309536 332477 53338 182205 51414 450400 365788 50804 13496 334250 251277 273738 492662 361508 127917 233762 227013 237730 443529 487736 322954 18598...

output:

509584529 505884467 509584529 505589821 509584529 509584529 509584529 509584529 509584529 509584529 506049235 509584529 505589821 509584529 509584529 509584529 509584529 509584529 509584529 505360737 507377470 508077499 509584529 509584529 506049235 509584529 509584529 509584529 509584529 509584529 ...

result:

ok 3000 numbers

Test #14:

score: 0
Accepted
time: 17ms
memory: 77740kb

input:

3000 2000
206137 220133 435068 178537 171840 339613 183120 446132 304351 141963 327896 436271 200519 247836 188576 144642 382136 461780 251737 133930 317616 164059 139074 270029 105666 84338 470385 9315 171801 287588 202954 11523 175339 382980 85329 237447 419998 429600 443901 124176 212745 12478 66...

output:

571133130 570173848 571133130 571133130 570927492 571133130 570784784 571133130 571133130 571133130 571133130 571133130 571133130 571133130 571133130 571133130 571133130 571133130 571133130 570980418 571133130 571010547 571053023 571133130 570952154 570981184 571133130 571011107 571133130 571133130 ...

result:

ok 3000 numbers

Test #15:

score: 0
Accepted
time: 14ms
memory: 77688kb

input:

3000 2000
167602 227995 73949 316919 35453 465010 159252 93563 30660 141993 164439 238021 226063 144110 377985 147061 304799 10143 19641 394140 163522 185753 428823 242903 135262 216536 39342 193425 444508 82866 444299 287346 223283 145380 358159 403817 78968 134156 160645 105261 365219 278415 32828...

output:

657721007 657721007 657632418 657721007 657593922 657721007 657717721 657652032 657589129 657700462 657721007 657721007 657721007 657702579 657721007 657705530 657721007 657568612 657578110 657721007 657721007 657721007 657721007 657721007 657693731 657721007 657597811 657721007 657721007 657641335 ...

result:

ok 3000 numbers

Test #16:

score: 0
Accepted
time: 18ms
memory: 80012kb

input:

3000 2000
209838 400440 69515 246945 14065 238744 272504 250349 457341 61876 271742 467723 118571 425307 17908 436138 350652 342675 357624 410907 93802 107510 131252 97141 272943 49097 324356 107244 131904 42686 492428 426933 464408 350188 122836 308119 251571 466176 362646 202479 159161 94993 37618...

output:

617650977 617721673 617510654 617721673 617721673 617721673 617713643 617691488 617721673 617503015 617721673 617721673 617721673 617721673 617721673 617721673 617721673 617721673 617721673 617721673 617534941 617721673 617572391 617538280 617721673 617490236 617721673 617548383 617573043 617483825 ...

result:

ok 3000 numbers

Test #17:

score: 0
Accepted
time: 25ms
memory: 77580kb

input:

3000 2000
60585 40180 97784 242380 459972 255582 161564 131327 384022 481759 70533 421618 43784 15017 92423 225215 396505 418310 471415 151866 24081 220755 300977 175572 153728 73146 352475 53766 95108 311019 297452 99224 205533 298099 111705 436613 148366 74004 340456 299697 209998 168467 180979 99...

output:

529233344 529233344 529233344 526495802 529233344 528995372 529233344 529233344 529233344 529233344 527034133 529233344 529233344 528876395 528233185 529233344 529233344 529233344 529233344 528659338 529233344 527093416 528858160 529233344 527034133 527890886 529233344 529233344 528956126 529233344 ...

result:

ok 3000 numbers

Test #18:

score: 0
Accepted
time: 18ms
memory: 77684kb

input:

3000 2000
168963 196166 302361 33035 25174 212386 181263 43267 444394 285143 172124 81088 258830 476350 245387 195704 262555 138169 47086 462829 422185 70674 168505 475309 91517 125813 285313 181031 333565 235637 329045 446174 141699 125943 376815 339095 431684 300602 200899 401273 260987 298286 101...

output:

622026122 622053325 621957053 622081145 621885624 622069545 622038422 621993904 622081145 622081145 622081145 622056942 622081145 622081145 622081145 621833292 621976480 621995328 621904245 622081145 622081145 621927833 622081145 622081145 622081145 621794284 622081145 622038190 622081145 622081145 ...

result:

ok 3000 numbers

Test #19:

score: 0
Accepted
time: 1190ms
memory: 944860kb

input:

40000 2999
280266 433480 113244 331824 86713 245914 128246 405001 256101 23340 389100 256926 303281 266445 323768 296373 409059 371343 255536 248025 424647 219048 206559 335010 327166 475814 295615 288335 105522 469184 115059 369635 227372 146280 417304 97038 464567 379941 147916 450516 453399 41668...

output:

761199182 748016221 767637909 756725400 758634820 758634820 749236728 758634820 747212164 751343205 756725400 766707598 756725400 768525328 766707598 756725400 755270777 756184345 758460336 761357252 758634820 758460336 747212164 749236728 749236728 747212164 756169280 758460336 761199182 750693639 ...

result:

ok 40000 numbers

Test #20:

score: 0
Accepted
time: 1206ms
memory: 943836kb

input:

40000 2998
485782 423015 278364 35139 346098 269675 455403 287454 316027 339363 441535 212195 370551 374648 37576 22962 164716 191262 453330 281037 345331 426291 93577 286909 169994 155352 23359 336447 173164 304658 126457 62924 301889 16642 255267 21214 261377 44394 330713 66008 228730 291491 14317...

output:

869746555 857043618 875153747 854964080 873409255 873409255 849720837 873409255 851273882 872919722 856534721 861374818 854187183 873677051 861514926 856390352 861514926 861433355 858821874 861514926 873409255 859967805 851273882 854871338 859832021 851159329 857419591 858821874 873409255 856534721 ...

result:

ok 40000 numbers

Test #21:

score: 0
Accepted
time: 283ms
memory: 942848kb

input:

40000 2997
253956 175405 44222 300155 352410 61537 423674 499193 482425 384208 480591 230597 98118 396858 455276 105502 401052 85602 27208 254238 341704 195441 246467 481040 248858 100324 376618 470722 449024 335855 173352 132782 330989 105348 171608 203698 277251 279323 96788 483511 212902 169374 2...

output:

1442159321 1442080770 1441949587 1442205520 1442257775 1441966902 1442329039 1442367458 1442367458 1442289573 1442367458 1442135962 1442003483 1442302223 1442360641 1442010867 1442306417 1441990967 1441932573 1442159603 1442247069 1442100806 1442151832 1442367458 1442154223 1442005689 1442281983 144...

result:

ok 40000 numbers

Test #22:

score: 0
Accepted
time: 832ms
memory: 944272kb

input:

40000 2999
325787 114232 451902 342832 285995 243231 295794 356447 260389 128357 94643 202930 324613 462209 151675 49337 414785 395040 10344 34485 196340 93288 442785 357455 128934 472863 240429 461963 195793 491838 483994 145823 106483 218437 350995 349603 73290 123355 406764 31069 329308 4605 3254...

output:

1335250952 757041735 1335317418 1234438072 1335211160 1335168396 1285801763 1335281612 1285766358 1285634326 1219550934 1335128095 1259519151 1335317418 1335076840 1083999348 820772312 886811858 763881009 999112966 1335121505 763881009 1285865008 1285863424 1285634903 1285865008 763881009 763881009 ...

result:

ok 40000 numbers

Test #23:

score: 0
Accepted
time: 1113ms
memory: 943188kb

input:

40000 2998
441081 106747 38943 439094 40396 6243 266004 41447 389903 26087 327348 327670 439327 415320 467429 203902 177134 380618 412532 175496 16964 406348 58484 430471 435524 130862 280930 319509 383896 175173 246788 235236 296195 335875 494498 178741 245984 115206 276000 21758 363316 275749 4088...

output:

784709480 789681875 789021254 783910295 776705041 783151049 778218691 781040384 783748469 785418021 783193746 783151049 783910295 783449506 783361421 786331195 776772890 769321715 778215005 776065851 783792245 781379859 787259972 782090311 791752821 786987465 778793079 776569660 783694906 787218378 ...

result:

ok 40000 numbers

Test #24:

score: 0
Accepted
time: 812ms
memory: 942956kb

input:

40000 2997
488032 283895 8172 325322 311094 33047 399588 20150 101894 201978 328580 137582 214415 290078 116374 97195 291619 459399 265791 60339 143661 78083 134520 433300 305823 334784 49044 12774 6548 336486 210209 313607 115790 169355 37178 129526 118758 66288 55215 436494 15614 126392 124681 739...

output:

1055126531 1053951151 1054676541 1055087549 1050276322 1053428889 1051262347 1052464927 1053242602 1054965473 1054697928 1053784051 1054675742 1055121905 1053470988 1054688984 1053715964 1054989437 1053375329 1053164584 1049129486 1053039987 1051618222 1054834980 1053722508 1055113667 1054565015 105...

result:

ok 40000 numbers

Test #25:

score: 0
Accepted
time: 1146ms
memory: 944760kb

input:

39996 1994
1 4 1 2 1 3 3 1 1 1 4 1 3 4 2 3 4 3 3 4 3 1 4 2 3 1 2 2 4 1 4 2 2 2 1 1 2 1 2 3 3 2 3 2 1 2 2 2 1 1 4 2 3 2 4 3 1 3 2 2 1 3 3 3 4 3 4 2 3 2 3 4 3 2 4 2 1 1 3 2 4 2 1 1 3 1 2 2 4 4 4 4 3 2 2 4 1 1 2 4 1 2 4 4 1 1 3 2 2 4 2 4 1 2 2 1 1 3 1 1 4 2 2 1 4 2 2 1 3 3 2 3 3 4 2 1 2 4 1 1 4 4 1 3 3...

output:

5060 5060 5098 5042 5066 5066 5039 5031 5065 4975 5045 5059 5011 5059 5059 5045 5021 5021 5013 5021 5066 4994 5068 5041 5041 5068 5013 5013 5057 5005 5013 5036 5013 5066 5057 5098 5098 5098 5068 5036 5098 5098 5079 5045 5060 5045 5013 5098 5060 5031 5066 5060 5041 5013 5083 5059 5098 5091 5013 5021 ...

result:

ok 39996 numbers

Test #26:

score: 0
Accepted
time: 1187ms
memory: 943784kb

input:

39994 1991
1 1 1 1 4 4 2 3 2 2 3 4 3 1 4 1 3 2 3 4 4 4 3 2 4 4 3 3 3 4 4 1 2 1 4 4 4 2 4 4 2 2 3 4 3 1 3 4 1 3 1 3 2 4 4 2 3 4 3 3 3 3 3 1 3 1 4 3 2 2 3 4 4 1 2 3 4 4 1 4 1 2 1 4 3 3 3 2 3 3 2 2 1 1 3 4 4 2 2 3 4 1 4 2 2 1 4 4 2 4 1 2 2 2 3 2 3 3 1 2 1 2 4 2 1 2 4 1 1 3 2 1 2 2 1 1 1 2 2 1 4 3 4 3 3...

output:

5580 5600 5597 5579 5593 5619 5617 5620 5649 5620 5595 5540 5557 5576 5592 5613 5660 5661 5635 5661 5620 5661 5622 5561 5559 5649 5567 5661 5581 5606 5608 5626 5616 5620 5581 5595 5597 5596 5588 5651 5596 5596 5597 5649 5557 5649 5622 5597 5556 5620 5593 5557 5566 5608 5580 5576 5597 5597 5625 5661 ...

result:

ok 39994 numbers

Test #27:

score: 0
Accepted
time: 202ms
memory: 943032kb

input:

39999 1993
4 3 1 1 3 4 1 1 4 2 3 2 2 1 3 3 3 4 4 4 3 2 2 2 1 3 1 2 4 3 1 4 4 2 2 1 1 1 4 3 4 2 2 3 2 1 1 1 3 4 3 1 2 2 1 3 4 4 3 1 1 2 1 4 1 3 1 4 4 2 1 2 3 1 4 3 1 2 1 4 4 2 2 3 1 2 3 4 1 3 2 1 2 4 3 2 2 2 3 1 3 3 4 3 2 4 4 4 2 3 1 1 1 2 1 4 3 2 3 1 1 3 2 1 1 3 1 1 2 2 3 4 4 1 1 2 4 4 4 1 3 3 4 1 4...

output:

7969 7968 7966 7966 7968 7969 7966 7966 7969 7967 7968 7967 7967 7966 7968 7968 7968 7969 7969 7969 7968 7967 7967 7967 7966 7968 7966 7967 7969 7968 7966 7969 7969 7967 7967 7966 7966 7966 7969 7968 7969 7967 7967 7968 7967 7966 7966 7966 7968 7969 7968 7966 7967 7967 7966 7968 7969 7969 7968 7966 ...

result:

ok 39999 numbers

Test #28:

score: 0
Accepted
time: 688ms
memory: 944148kb

input:

39997 1994
3 3 3 4 1 4 3 2 4 3 1 4 2 3 2 2 1 3 3 2 3 3 4 1 3 3 2 4 1 1 3 3 2 4 2 1 4 4 1 2 1 1 3 4 4 3 4 1 1 3 4 4 3 1 1 3 4 1 2 1 4 2 2 4 3 1 3 1 3 4 4 1 2 1 1 4 2 1 1 1 4 1 3 2 2 1 1 1 3 3 2 2 3 2 4 3 1 1 4 1 3 1 3 4 4 3 1 1 3 3 3 3 1 3 1 2 1 4 4 2 3 3 3 4 2 3 3 1 2 2 2 1 4 1 1 2 2 4 3 3 2 1 2 3 1...

output:

7975 7975 5020 7976 5761 5076 7018 5078 7975 5085 7972 7976 7973 7975 5078 7974 5085 7975 7974 7032 7975 5085 5977 7972 7974 7975 7973 7975 7972 5105 7975 7719 7974 7975 5078 7973 7975 7975 7972 7974 7973 4971 5078 6217 6434 5076 7975 6661 7972 7975 7975 7976 7975 5030 7972 5708 7976 7973 5105 7973 ...

result:

ok 39997 numbers

Test #29:

score: 0
Accepted
time: 860ms
memory: 943168kb

input:

39990 1994
3 1 3 4 4 3 2 3 1 2 4 1 2 2 3 3 4 2 4 4 1 4 4 4 1 3 4 4 1 3 4 4 1 4 3 2 3 1 4 4 1 3 4 4 2 3 1 2 4 2 3 2 4 3 1 2 4 1 2 2 2 1 2 3 1 3 1 1 2 3 4 3 4 2 4 4 3 4 2 4 2 3 4 4 2 2 4 1 2 2 1 4 3 3 3 1 4 1 4 4 1 3 4 4 2 3 2 3 3 4 4 2 2 3 4 3 1 3 1 4 1 4 4 4 4 2 2 3 3 2 3 2 3 2 2 1 1 1 2 4 1 2 2 3 4...

output:

5181 5148 5179 5119 5169 5221 5169 5133 5169 5115 5101 5221 5112 5080 5181 5149 5135 5166 5092 5124 5198 5144 5208 5194 5162 5199 5180 5146 5119 5103 5191 5186 5194 5221 5127 5179 5155 5154 5208 5197 5156 5179 5136 5179 5162 5165 5141 5179 5196 5124 5169 5196 5166 5163 5096 5088 5119 5113 5100 5131 ...

result:

ok 39990 numbers

Test #30:

score: 0
Accepted
time: 709ms
memory: 942864kb

input:

39992 1999
4 2 4 1 3 1 3 4 2 3 3 2 1 3 3 1 3 4 4 3 1 3 2 4 3 3 4 4 4 3 3 2 3 4 3 3 4 2 3 2 4 2 3 1 1 2 3 3 2 2 3 1 4 4 4 4 1 3 4 2 4 2 1 4 2 3 1 4 1 4 1 4 4 1 1 4 2 4 2 1 4 4 3 3 2 3 1 3 3 1 1 2 1 1 3 3 1 2 2 4 3 1 4 2 3 4 3 3 2 3 2 4 1 3 4 3 3 3 1 4 3 3 1 4 1 3 4 4 3 3 4 2 3 1 2 4 1 1 4 1 1 4 4 2 1...

output:

6642 6643 6627 6644 6617 6622 6620 6644 6636 6646 6646 6631 6647 6636 6641 6644 6638 6636 6642 6644 6633 6643 6608 6612 6626 6615 6638 6629 6640 6641 6645 6634 6645 6636 6624 6633 6644 6631 6616 6632 6631 6637 6624 6618 6644 6614 6612 6623 6630 6645 6644 6623 6619 6640 6647 6640 6634 6637 6641 6630 ...

result:

ok 39992 numbers

Test #31:

score: 0
Accepted
time: 735ms
memory: 944944kb

input:

39993 1
399465 426286 72340 274844 31958 27746 313332 346581 393673 80677 352455 309763 60849 132710 448240 139659 239502 322875 209622 397538 489964 472213 75479 377125 243766 250186 75032 108051 55883 163563 282821 499095 162168 279798 17798 225907 15087 239664 246319 175917 478175 192838 331600 4...

output:

399465 426286 72340 274844 31958 27746 313332 346581 393673 80677 352455 309763 60849 132710 448240 139659 239502 322875 209622 397538 489964 472213 75479 377125 243766 250186 75032 108051 55883 163563 282821 499095 162168 279798 17798 225907 15087 239664 246319 175917 478175 192838 331600 417586 47...

result:

ok 39993 numbers

Test #32:

score: 0
Accepted
time: 735ms
memory: 943848kb

input:

39994 2
35748 379063 104935 138500 191295 329213 46427 408629 28667 21030 134039 344893 477002 300927 201536 177702 418682 335787 95009 365459 216913 282673 391378 309373 287199 295068 126312 487601 87946 64155 141761 97063 36125 21201 463176 95278 312190 286709 484401 238399 297129 459993 21870 100...

output:

270564 677306 530243 306189 664561 574294 395587 805229 522641 520674 632994 831810 913631 607250 533311 370510 855023 548721 317479 404663 700107 494019 495117 685994 339806 352826 389982 983231 544956 472114 629143 535273 414365 409737 953200 296861 726401 648141 644714 500433 398459 937640 342436...

result:

ok 39994 numbers

Test #33:

score: 0
Accepted
time: 67ms
memory: 942784kb

input:

39993 3
453572 187430 252553 301266 484058 469015 300031 159835 197583 303286 229721 427819 419695 354503 312644 284719 293213 115021 185321 41623 270835 198632 175312 151202 268564 128787 263166 50873 362383 403233 373666 345413 482270 122921 282716 364356 350610 418396 331059 367805 448407 30697 1...

output:

1416780 1150638 1215761 1264474 1447266 1432223 1263239 1123043 1160791 1266494 1192929 1391027 1382903 1317711 1275852 1247927 1256421 1078229 1148529 1004831 1234043 1161840 1138520 1114410 1231772 1091995 1226374 1014081 1325591 1366441 1336874 1308621 1445478 1086129 1245924 1327564 1313818 1381...

result:

ok 39993 numbers

Test #34:

score: 0
Accepted
time: 381ms
memory: 944324kb

input:

39999 4
497809 428296 61805 193197 224672 219770 73868 73029 376319 336937 214155 345393 495411 343527 151969 276085 423617 215630 433957 486057 371941 465824 308471 273709 472986 1732 286867 186459 460092 294610 100256 171444 203731 68793 179825 59874 440489 487080 9228 229188 80851 223100 143895 4...

output:

1778912 1709399 1315523 1474300 1368465 1274132 1001048 1227258 1737614 1505735 1575450 1626496 1856706 1624630 993526 1557188 1217457 1496733 1795252 1522771 1653044 1266501 1193617 1635004 1834281 1282835 1648162 1547754 1821387 1480049 1381359 879932 1484834 1430088 1118122 1340977 1801784 184837...

result:

ok 39999 numbers

Test #35:

score: 0
Accepted
time: 575ms
memory: 943204kb

input:

39997 5
203006 146744 58639 321565 397665 424060 456516 144134 271646 157998 357116 171167 397873 194419 119727 258913 457983 291226 415912 36806 201476 27706 181179 485725 449483 388420 248624 22110 303120 341136 403124 293645 358810 332790 454563 249070 467545 299916 120071 420524 442127 153710 44...

output:

1802677 1562552 1147467 1530711 1631557 1659449 1550034 1210652 1764866 1544143 1391774 1857626 1436230 1226333 1583044 1960205 1490412 1413455 1734611 842355 1538057 1344479 1871525 2300026 1724357 2079655 1731598 1173919 1675775 1298928 1830527 1633649 1271413 1831863 1948812 1479068 2048066 15951...

result:

ok 39997 numbers

Test #36:

score: 0
Accepted
time: 464ms
memory: 942840kb

input:

39994 6
407857 439869 111142 179594 140644 236510 274484 51219 150570 400654 469609 94210 323340 88819 182430 255786 195345 139325 489872 470498 98732 291677 423365 412182 117716 151268 140674 340696 17207 38211 23010 148057 268766 376088 391362 433008 28310 476244 23927 384086 352313 347256 434177 ...

output:

1606177 2082358 1867567 2200808 1753594 1745525 1138149 1881576 1932173 2357319 2222152 1936892 2102108 1879425 2158614 2091080 2179522 1745521 2313822 2446534 2024511 1843638 2318306 1885164 2061701 2178024 1887238 2108496 1334663 2073206 1533747 1294707 2199499 2204781 1776724 2132451 1409835 2162...

result:

ok 39994 numbers

Test #37:

score: 0
Accepted
time: 1121ms
memory: 944896kb

input:

39994 1991
12826 399575 129508 354552 144733 339886 28494 476697 415297 399994 87059 320613 173574 399804 196799 173982 441287 17630 54851 240894 393175 373675 367905 124441 225226 129611 486207 164666 404439 193439 119791 321731 378295 337362 263208 232304 84750 295159 399843 148215 472960 122802 1...

output:

508148582 506732467 501429353 490864547 510351603 511966941 503773999 510952661 495719687 498040411 490864547 506030771 490864547 495479909 513253740 490864547 509294358 509915892 500542347 513848798 511966941 499289545 492619364 503773999 503773999 495186790 505068720 499289545 508148582 507957555 ...

result:

ok 39994 numbers

Test #38:

score: 0
Accepted
time: 1169ms
memory: 943704kb

input:

39993 1992
258607 363295 21875 389368 303625 26827 19713 252190 202882 370919 201631 340361 45032 132239 436242 153844 470199 491909 111022 156193 191423 132836 356691 368615 63508 482387 319374 3870 359871 85132 76069 343473 254028 402180 134858 268837 208718 306202 489137 107828 318569 390248 1226...

output:

574471935 576440010 575786826 572552056 579732394 578598724 573080591 569678884 581044058 578857153 575902381 576855133 580810957 576695522 578108014 570660332 578857153 576855133 581044058 573325751 571787710 578857153 573440989 576440010 575902381 574471935 576440010 575429461 575902381 579732394 ...

result:

ok 39993 numbers

Test #39:

score: 0
Accepted
time: 224ms
memory: 942836kb

input:

39990 1998
88184 94615 234255 299057 455567 488044 272047 185680 67128 425858 424568 196777 194665 145459 76918 53406 335073 199367 195487 369699 148014 344991 55002 85890 143989 457428 217030 62786 3830 70299 98134 205577 490641 334200 61422 481101 158004 432637 9 428810 355320 78918 369773 426772 ...

output:

972177774 972184205 972323845 972388647 972545157 972563608 972361637 972275270 972156718 972515448 972514158 972286367 972284255 972235049 972166508 972142996 972424663 972288957 972285077 972459289 972237604 972434581 972144592 972175480 972233579 972547018 972306620 972152376 972093420 972159889 ...

result:

ok 39990 numbers

Test #40:

score: 0
Accepted
time: 678ms
memory: 944060kb

input:

39999 1994
417219 107470 175337 195286 139354 487538 421792 145642 261046 46173 23997 490782 208851 77276 213390 384077 305989 84974 493878 400976 250849 68653 101597 206603 187440 439064 21909 270593 225926 216605 148365 38940 170257 162398 406739 313627 306462 74756 451125 496652 263812 108924 657...

output:

920571251 920261502 504633500 920349318 630705252 513664260 795739605 503785964 905842777 513664260 905605728 920577477 905790582 920231308 505310495 920538109 513664260 920239006 905989382 797121003 920404881 513664260 650953235 905788334 905769171 920577477 905603640 905852324 905807657 504042494 ...

result:

ok 39999 numbers

Test #41:

score: 0
Accepted
time: 852ms
memory: 943116kb

input:

39997 1995
130226 330056 116350 459369 215425 243529 271836 364225 359173 474 454522 383692 296017 185581 352098 136550 307230 248896 285933 331329 461526 424573 143067 343285 312992 116940 342934 25452 430616 146509 442137 291594 246783 126932 289381 443661 58785 325305 33690 334779 74335 389175 19...

output:

520592894 517968612 517133119 510951345 523472098 518656977 515467132 506219763 513538783 519794304 517074614 511702341 517968612 523502144 519462046 521248087 517924759 523502144 514334268 515413097 520028949 520592894 513206799 512620697 516944895 520592894 508597789 513538783 516944895 523502144 ...

result:

ok 39997 numbers

Test #42:

score: 0
Accepted
time: 734ms
memory: 943008kb

input:

39996 1996
246537 148742 236953 467591 294827 253885 106780 232592 358662 311987 238614 247658 220665 153473 382856 441965 165555 317493 286262 278836 118376 362535 35479 339908 159493 214928 360417 404222 389101 217806 176424 436916 210778 259806 66363 16052 252231 158616 322798 249346 455475 27630...

output:

713496130 713807091 713021008 714678776 710208494 709940413 714441586 709780677 712741655 710794259 714573420 713402916 714555471 710763716 713264473 714404482 713806416 714368918 712644820 713969970 713201873 713298657 711246675 711790987 713625683 713044242 714256747 714045702 710822379 714010931 ...

result:

ok 39996 numbers

Test #43:

score: 0
Accepted
time: 1092ms
memory: 944836kb

input:

39994 1991
199497 331625 73547 64561 382642 380677 184663 466237 222185 233021 266877 275685 10765 437859 48356 370989 263910 47250 326466 234698 146338 493427 75809 448125 283534 438970 45285 269047 302023 376442 10 344874 478809 89728 201323 395035 155025 33258 10645 309487 225357 198841 184452 28...

output:

485475158 477208418 480644511 481552411 480755667 482376657 481576463 482376657 480963431 476727990 482639510 486402944 475200824 479586495 489619552 485356516 478559801 483434153 488289278 490113669 482376657 488289278 486002279 477973030 475935498 486002279 479887489 488289278 482364010 489398363 ...

result:

ok 39994 numbers

Test #44:

score: 0
Accepted
time: 1165ms
memory: 943784kb

input:

39993 1992
426150 489833 11916 223084 215331 83122 396081 431078 307694 444518 151897 130619 189006 381939 134574 319080 477340 275275 89495 171320 312413 81797 281369 394710 11213 421915 443583 5 174769 494898 260892 9 278351 440400 339364 123341 38946 455888 497139 138758 313286 456072 476622 2339...

output:

564511495 546661892 553499702 561356425 556543519 558036475 555256785 552814104 539341110 558555530 560491387 561212783 546454869 563825832 558450331 563014792 558555530 563817488 539065212 555159186 564296610 558162114 548597039 546661892 560376121 564511495 546578262 560186692 560408761 556543519 ...

result:

ok 39993 numbers

Test #45:

score: 0
Accepted
time: 186ms
memory: 942808kb

input:

39990 1998
278015 107629 284009 153589 50176 391693 494373 148665 52054 106727 308257 38489 350319 441767 429887 490862 166439 353847 432811 174350 77932 368619 475705 119966 41538 308562 4 225255 71433 498026 55772 173228 311665 8786 197044 188054 317554 341526 761 51439 433515 10 366324 349370 399...

output:

972064399 971894013 972070393 971939973 971836560 972178077 972259865 971935049 971838438 971893111 972094641 971824873 972136703 972228151 972216271 972259865 971952823 972140231 972219195 971960734 971864316 972155003 972259865 971906350 971827922 972094946 971786388 972011639 971857817 972259865 ...

result:

ok 39990 numbers

Test #46:

score: 0
Accepted
time: 673ms
memory: 944184kb

input:

39999 1994
287021 36172 289776 318998 187448 47139 3 479248 181452 219627 356303 92368 455310 304659 433375 295566 384117 309015 197753 246729 400279 119216 41545 121931 20210 50184 392174 200072 8 118011 381327 2791 259788 6 135939 103758 259051 419019 351855 206831 211046 37151 321740 402948 10 39...

output:

917319877 917069028 483965480 917351854 611150895 484215005 787048852 484233967 899332854 485314390 899507705 917125224 899555682 917337515 486371121 917328422 485314390 917341871 899349155 789146226 917433135 486371121 632693510 899273333 899171612 917083040 899543576 899351474 899151410 484594005 ...

result:

ok 39999 numbers

Test #47:

score: 0
Accepted
time: 835ms
memory: 943200kb

input:

39997 1995
232408 217030 3 204124 239234 197304 4 99873 408559 378719 326572 451833 445536 162806 330581 197178 470117 42669 478264 451950 347867 191698 54999 371320 410713 3585 36643 165106 366135 486896 172409 396457 455864 302300 334029 354796 431782 271796 105267 166805 433886 263640 11185 15335...

output:

504051556 500780792 489889014 487581597 487572243 494259434 500780792 494526626 502167214 496255027 503397015 494876061 501150475 493569934 497221239 494872609 496370312 492730010 499374247 500780792 498910788 502250918 496847334 495727062 501150475 504051556 497622213 502387088 501150475 493134366 ...

result:

ok 39997 numbers

Test #48:

score: 0
Accepted
time: 1091ms
memory: 943108kb

input:

39997 2994
427860 113909 321970 189986 331855 490299 269216 390969 58921 447243 30165 20767 391689 375672 362977 5 467454 3 271751 448095 395494 89249 236035 85390 8295 388146 238216 1848 418565 61310 104097 346180 246901 324212 100165 127989 204078 216185 40823 131983 444996 160037 308194 111596 42...

output:

744871007 751112783 746264919 751990145 747573290 740310841 750572211 743709848 743219767 739357531 749838308 751902817 751112783 750681876 737869396 749278102 739067097 750871153 745491145 750572211 745149253 740954837 744944496 751990145 752090843 745774037 747937552 744037323 752090843 746364334 ...

result:

ok 39997 numbers

Test #49:

score: 0
Accepted
time: 1094ms
memory: 943188kb

input:

40000 2995
306291 132516 31771 208665 499361 204428 171031 305379 207353 476952 282309 330610 240730 300944 42762 427932 174495 343313 137439 48036 15628 335319 420133 179155 451078 52588 31650 488727 111398 470757 378378 132980 247058 398621 319939 38946 1 283579 268808 467252 200158 428348 154794 ...

output:

753172385 753170342 760447375 752839621 749378024 746765732 754038458 751684530 759903760 753890454 752562522 746765732 753613712 750051333 738971511 752197608 753478317 744510298 751706272 751263091 746813066 749439526 757463501 750655030 762804826 760982906 746770015 752695346 759157003 758564355 ...

result:

ok 40000 numbers

Test #50:

score: 0
Accepted
time: 720ms
memory: 942872kb

input:

39996 2999
457423 80962 352879 4 283369 466546 424866 231903 389677 8 37637 125262 272615 461745 259465 59798 144868 2 256089 74945 4217 186429 490981 84912 247889 319216 344801 485522 390072 11475 281822 142478 52529 71914 127295 84572 483635 248218 317044 201835 153168 109840 347783 240824 77863 3...

output:

1019833037 1021635753 1020536589 1022279143 1020445242 1022510089 1018357152 1021123579 1022187434 1021703195 1022609401 1019508847 1022609401 1021347137 1020638051 1022085024 1021796854 1021173278 1022609401 1022001488 1021829908 1020263394 1018071491 1020575422 1020284978 1021749769 1022609401 102...

result:

ok 39996 numbers

Test #51:

score: 0
Accepted
time: 671ms
memory: 944944kb

input:

39997 1
338125 235298 60914 259255 109910 486936 33546 50190 472848 283796 64048 269961 492334 3 216147 495491 34149 296397 74064 109407 253225 192868 383807 181768 306090 477970 224344 358755 213733 462259 7279 344876 28820 219402 6643 333988 87405 318528 460754 365295 493952 193305 149709 307444 2...

output:

338125 235298 60914 259255 109910 486936 33546 50190 472848 283796 64048 269961 492334 3 216147 495491 34149 296397 74064 109407 253225 192868 383807 181768 306090 477970 224344 358755 213733 462259 7279 344876 28820 219402 6643 333988 87405 318528 460754 365295 493952 193305 149709 307444 298229 38...

result:

ok 39997 numbers

Test #52:

score: 0
Accepted
time: 631ms
memory: 943964kb

input:

39994 2
356152 375847 86883 255173 251737 393625 88638 487927 328008 87938 222480 252738 265295 9 29330 58077 61959 86702 281093 360265 350374 447740 318281 151638 18126 6 251569 303662 245486 337708 455779 27322 150319 439156 372560 60071 431156 450183 283232 192880 405917 207563 142730 478155 4360...

output:

507398 826164 401464 598889 575625 780922 484065 967913 783598 429157 549261 520561 674324 267376 142601 125526 481181 535346 577732 835415 749908 801183 695792 645182 516324 170737 678655 753423 589410 715153 876220 348802 613894 872539 631421 245957 678529 903194 637003 340005 494184 557352 332194...

result:

ok 39994 numbers

Test #53:

score: 0
Accepted
time: 72ms
memory: 942672kb

input:

39993 3
11923 357755 467377 209982 43128 5 151490 332698 4471 4 134578 457937 128043 398491 238161 74955 136399 77604 154978 51747 446378 6 201383 3352 314013 10 11524 363756 21822 124238 227693 104190 478694 292829 456153 392413 80931 29271 146635 440238 292967 348346 74640 197772 103135 496628 164...

output:

677814 1023646 1133268 875873 709019 665896 817381 998589 670362 665895 800469 1123828 793934 1064382 904052 740846 802290 743495 820869 717638 1112269 665897 867274 669243 979904 665901 677415 1029647 687713 790129 893584 770081 1144585 958720 1122044 1058304 746822 695162 812526 1106129 958858 101...

result:

ok 39993 numbers

Test #54:

score: 0
Accepted
time: 325ms
memory: 944096kb

input:

39995 4
152452 277333 440760 418253 288379 316169 76028 17950 154684 209791 464052 76179 92547 13772 118459 308091 497154 392855 388804 69509 163457 2 434945 290364 75580 139420 237740 22024 2 358529 210314 213311 105921 31948 328760 3 352314 171318 282175 288984 194784 121564 374403 387196 85490 30...

output:

1571757 1696638 1440957 1837558 879528 1524140 968728 640673 1188228 1290348 1497596 1495484 1126091 1433077 1114278 1727396 1541658 1812160 1422348 1408667 1582762 1174257 1739681 1323908 1109124 1558725 1271284 1055568 1033546 1366641 1629619 1339601 1525226 1065492 1072085 1419308 1385858 1204862...

result:

ok 39995 numbers

Test #55:

score: 0
Accepted
time: 492ms
memory: 943192kb

input:

39996 5
419719 70650 471464 477420 385088 386429 116292 476625 418465 405237 356804 492667 447748 412863 428450 424686 161283 168831 171475 112253 50552 375219 419543 365833 10 5866 203639 485967 355849 454053 146372 317595 13022 192848 285952 383198 497486 437335 373425 3 476637 274751 166530 18560...

output:

1914307 1264378 1274172 2002481 1791055 1678654 1573765 2001463 1911199 1326683 1888924 1633194 1465526 1865736 1718840 1847484 1079482 1203158 1538740 847148 1031368 1610106 1655041 1441797 1047071 917854 1287497 1130306 1181628 1576172 1306117 1230505 1354720 1503591 1465828 1709190 1306670 149578...

result:

ok 39996 numbers

Test #56:

score: 0
Accepted
time: 424ms
memory: 942984kb

input:

39994 6
10 454405 101602 372673 157484 346243 64647 71128 142853 240590 80924 460783 117307 412381 247236 346185 343436 494352 355937 455904 430626 299710 211764 432932 229870 249439 325733 224643 93457 220229 300070 2988 449002 173791 335255 366364 133351 291505 308086 493684 317714 478125 227280 3...

output:

1864723 1772271 1898723 1570747 2055083 2451609 1824083 1956164 1408767 2057093 1785228 1923750 1754365 2115069 1434922 1965643 1989496 2033854 2320177 2330275 2354272 1868704 2024362 2271011 1577300 1860574 1823509 1900981 1986301 1900947 2540318 1728930 2088336 1826092 1760649 2370432 1439683 2007...

result:

ok 39994 numbers

Test #57:

score: 0
Accepted
time: 606ms
memory: 945016kb

input:

40000 100
325269 493542 26827 217741 311754 62834 93536 49348 69606 327855 314364 455319 133878 191957 257626 14286 49432 5192 111833 48848 64782 157179 346442 65777 486360 468956 350826 114576 466204 123862 424314 290899 329391 280785 34545 133113 457092 261336 413551 247275 173264 493900 57492 363...

output:

26564660 27351068 28497786 26633519 25772759 27535683 26473527 26533846 27888712 27433465 25880454 25041008 26893681 25535946 27549460 25192986 25216639 24071344 25929051 25792675 26743783 26636834 27011032 27657084 24847737 25529404 25492614 26059995 24146888 24211483 27033001 25329050 22895226 270...

result:

ok 40000 numbers

Test #58:

score: 0
Accepted
time: 636ms
memory: 944004kb

input:

40000 100
106127 267366 492255 198103 57776 143753 181378 165751 319326 251091 332996 106450 242456 458922 78337 399018 144249 334325 251024 23694 341269 440953 200839 291847 110462 136333 404906 40212 461136 441637 448943 345412 273578 193974 498175 386788 299879 107708 43083 431888 284957 278172 1...

output:

30670923 30956633 30701307 30490854 28859975 30462036 30931527 29606727 28755456 30440122 31093751 29779956 30794567 30119626 29450788 31250792 30050017 30656258 27904352 29856098 31986887 32269051 29220921 29169935 31412426 30194299 28463550 28905624 29107115 29290206 30681145 29159019 29003521 303...

result:

ok 40000 numbers

Test #59:

score: 0
Accepted
time: 56ms
memory: 942944kb

input:

40000 100
302688 416252 458274 139448 358977 131179 12168 87112 289041 42731 161664 480133 476835 269539 153799 231259 303970 139327 485673 149592 278615 208880 337260 328442 91005 208386 22728 322264 267781 128063 31710 479621 174067 184026 86872 123922 373809 48253 288506 64177 402068 493282 14177...

output:

49632975 49746539 49788561 49469735 49689264 49461466 49342455 49417399 49619328 49373018 49491951 49810420 49807122 49599826 49484086 49561546 49634257 49469614 49815960 49479879 49608902 49539167 49667547 49658729 49421292 49538673 49353015 49652551 49598068 49458350 49361997 49809908 49504354 495...

result:

ok 40000 numbers

Test #60:

score: 0
Accepted
time: 337ms
memory: 944332kb

input:

40000 100
403494 174295 173997 196045 478333 270551 471484 468090 382407 432872 52610 434028 398314 387722 118237 267250 22454 285786 432049 45708 336475 339930 82669 88222 63936 466005 230232 288204 89178 146516 69057 291278 17014 385647 225132 161486 65815 280559 396591 84724 324981 371420 263307 ...

output:

49330493 29861261 49100996 28481027 49405332 49197550 49689258 49395089 49600181 49650646 26948109 49361027 27370598 49314721 49045236 26629768 26463268 25657862 28182281 26335141 49263474 25402073 49300443 49305996 49281710 49683779 24944674 27205782 49016177 25171536 24668778 26150822 26689292 493...

result:

ok 40000 numbers

Test #61:

score: 0
Accepted
time: 497ms
memory: 943212kb

input:

40000 100
471596 273553 357017 318051 406200 199524 154992 381772 199965 290310 476260 196434 76688 281713 82675 13641 399723 208053 102617 7232 427039 195173 295374 123811 195651 223625 227335 254144 377871 164968 139107 135640 51448 54563 139199 390538 290526 269761 471972 348375 472087 492663 193...

output:

28446044 26679038 29057470 26648438 26259666 28679430 28571254 25950223 22642982 27065955 29028269 28679430 26822550 25151554 26292857 26866692 26137301 29371755 27300780 24505765 27748330 23922978 27934624 24853529 25621695 28199318 23094623 25490042 27671778 25874338 28351201 26271983 27045099 286...

result:

ok 40000 numbers

Test #62:

score: 0
Accepted
time: 400ms
memory: 943104kb

input:

40000 100
342600 372569 482215 29442 69509 437908 439052 432678 230591 318344 195757 488425 228232 156278 136982 278740 84091 60821 406935 176320 487508 11869 459402 430694 291481 12848 138748 216676 278945 291728 192602 117136 20595 340501 406764 207951 386651 270710 171715 183485 309925 359813 442...

output:

35878219 38412840 35099532 39480590 34028365 33378715 34629410 34897095 33302565 34542672 39093681 36612674 39679380 34661976 35542740 38952808 35729782 35472817 37035871 37376212 35459135 36596372 32290830 35056176 34332656 32918775 36681414 36672275 33610737 38324340 37169164 34645723 37618705 353...

result:

ok 40000 numbers

Test #63:

score: 0
Accepted
time: 849ms
memory: 944964kb

input:

40000 1000
16247 150467 250236 470208 356470 37796 145335 33105 351593 387861 378268 243827 103129 15055 408653 53444 257766 327613 373614 75368 387898 344525 249219 258741 479938 226171 385124 146579 148683 187120 188549 96934 393689 67173 305510 435908 183544 55423 184969 145836 5869 349038 436782...

output:

249017605 252977289 251501899 251361551 253541281 254940870 259476343 254423107 251952990 252322835 251361551 259760512 251361551 257814994 251722968 251654936 263927452 263927452 255660828 257864461 254940870 260241101 253126654 254904251 256279318 252518585 254178076 254993643 255356837 254791947 ...

result:

ok 40000 numbers

Test #64:

score: 0
Accepted
time: 830ms
memory: 943904kb

input:

40000 1000
493043 306020 291993 194903 167320 109275 432753 353644 370387 97580 215705 487179 111413 391984 7043 376058 266514 446371 41673 32249 139978 28989 365414 451196 20561 244306 125600 246494 45990 486840 471306 62878 2211 47724 420508 207351 255120 375921 309336 249259 487440 403883 446990 ...

output:

285235280 293050373 291761062 288967317 287039928 291373773 286652658 289932900 299854848 288266418 288877544 291421973 288722483 286580327 290448450 288967317 288984396 288984396 289785247 288871742 291373773 289629132 292907168 290394363 290122215 291940394 285638762 289726537 288246774 291961910 ...

result:

ok 40000 numbers

Test #65:

score: 0
Accepted
time: 124ms
memory: 942832kb

input:

40000 1000
185155 7769 181682 391915 436397 106141 63967 136277 295220 102736 192864 460128 137574 59933 304826 303122 45007 429043 490558 433008 69026 106626 496932 488702 84584 274113 365538 354267 258773 224025 295945 285656 271069 437710 357837 202524 100261 309635 92627 430034 10480 348419 4883...

output:

493002215 492824829 492998742 493208975 493253457 492923201 492881027 492953337 493112280 492919796 493009924 493277188 492954634 492876993 493121886 493120182 492862067 493246103 493304346 493250068 492886086 492923686 493304346 493304346 492901644 493091173 493182598 493171327 493075833 493041085 ...

result:

ok 40000 numbers

Test #66:

score: 0
Accepted
time: 512ms
memory: 944208kb

input:

40000 1000
285961 107028 397406 448512 55752 245513 23283 17255 388585 492878 83810 222535 91757 210820 236560 82217 230788 384015 193830 361828 159591 494572 209637 248482 24810 255924 297234 320208 271658 209773 333291 130017 272800 106626 239200 464280 324971 74645 168008 193684 157586 226558 142...

output:

480269353 255410468 480380798 387747505 480039144 480228905 474947830 480000647 475313132 475375673 371228907 480205927 427784575 480194212 480219952 256318433 252541310 252301559 254305119 253545396 480142983 252541310 475134184 475173029 474949357 475180471 258196035 248968573 480255050 257110020 ...

result:

ok 40000 numbers

Test #67:

score: 0
Accepted
time: 658ms
memory: 943100kb

input:

40000 1000
162575 365070 80425 313622 483620 174486 482599 398233 481951 317612 40164 419534 13235 137514 200998 85503 140760 306282 364398 257944 250155 125623 487750 284071 189229 13543 37441 318852 93055 228226 403341 217483 115746 308247 153268 226037 16978 63847 276094 214231 271988 315097 7264...

output:

255747759 252866132 260016300 261185179 263399123 265252157 263399123 263223283 261101643 265064323 258101523 264665444 261314969 263540047 265993808 253997756 261666776 259918252 254602200 261716323 270655603 251517292 271389306 263656980 260683768 260479256 261809660 253952512 259589544 269155873 ...

result:

ok 40000 numbers

Test #68:

score: 0
Accepted
time: 552ms
memory: 943044kb

input:

40000 1000
294925 135415 25056 26242 146349 436134 414619 120571 248948 197537 111169 336449 354084 346236 98392 255779 482164 172867 197584 460683 220808 132609 123977 57338 10092 153526 359442 455662 363799 28418 439158 77705 249228 226955 296393 28514 341892 263114 213777 468152 203897 261332 224...

output:

363861672 365492940 363514466 366292429 366529304 365407686 364979855 361285983 366140035 363986579 365710397 365789083 366614521 363493393 365834794 365822799 365557029 365764928 365910146 364885395 364349924 364957476 362950238 363522914 366122992 363585719 365549617 365437322 362962582 366380919 ...

result:

ok 40000 numbers

Test #69:

score: -100
Wrong Answer
time: 1134ms
memory: 944860kb

input:

40000 3000
204950 415912 174797 350794 248375 98961 36565 81979 320603 361727 115501 59502 285960 369694 468841 354741 158497 140424 494399 421448 170578 237949 96774 395889 229659 217561 225059 361070 475258 438889 174207 265869 224265 425849 95900 115646 204400 96351 118065 364456 33965 13957 2754...

output:

2147113848 1825396664 1864528688 1462276610 2008770489 2010954704 2147387229 2010954704 2147072420 1581347233 1462276610 1927356325 1462276610 2015572468 1766189193 1462276610 2147311366 2147311366 1918565123 2147311366 2010954704 2147243408 2147250310 2147387229 2147387229 2147461312 2147229902 214...

result:

wrong answer 1st numbers differ - expected: '768896873', found: '2147113848'