QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#783186#9790. Make Swamp Great Againucup-team5624AC ✓61ms11056kbC++20969b2024-11-26 00:53:592024-11-26 00:53:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 5496kb

input:

6
4 7 47 4 77 47

output:

4 6 4 4 5 4 

result:

ok single line: '4 6 4 4 5 4 '

Test #2:

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

input:

6
4 7 47 4 77 47

output:

4 6 4 4 5 4 

result:

ok single line: '4 6 4 4 5 4 '

Test #3:

score: 0
Accepted
time: 20ms
memory: 7712kb

input:

34282
90425 22450 88504 38625 50256 24285 29693 59937 55013 65148 74544 79337 84799 18379 96719 45091 46959 34827 91934 5519 57325 75622 98980 11649 42236 14474 44579 97335 71798 95780 52228 34730 42473 53258 62204 12246 15037 67194 47 41533 22010 29201 65866 68828 26827 16763 76098 73625 5875 92559...

output:

34281 34281 34281 34281 34281 34280 34281 34281 34281 34281 34281 34281 34281 34280 34281 34281 34281 34281 34281 34281 34281 34281 34280 34281 34281 34281 34281 34280 34281 34279 34281 34281 34281 34281 34281 34281 34282 34281 34281 34281 34281 34281 34280 34281 34281 34280 34281 34280 34281 34279 ...

result:

ok single line: '34281 34281 34281 34281 34281 ... 34280 34281 34281 34281 34281 '

Test #4:

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

input:

92272
71762 25620 15348 35776 16931 76528 9558 49040 89138 57674 33861 40705 81647 81160 54982 56282 86192 69086 78613 83753 91918 9767 22299 44812 2091 70190 23588 60830 54801 12210 51232 33669 67124 11981 62462 85526 36775 48420 26359 71963 12493 43080 56840 28514 64338 86901 10478 61736 64445 428...

output:

92269 92271 92271 92270 92271 92270 92270 92268 92271 92271 92270 92271 92270 92271 92269 92269 92270 92271 92270 92270 92269 92271 92268 92271 92271 92270 92269 92269 92270 92269 92271 92271 92271 92271 92270 92270 92270 92270 92270 92270 92269 92272 92271 92268 92271 92269 92271 92270 92271 92271 ...

result:

ok single line: '92269 92271 92271 92270 92271 ... 92269 92271 92270 92270 92270 '

Test #5:

score: 0
Accepted
time: 10ms
memory: 6800kb

input:

25150
19951 14838 9396 15852 22860 3040 10118 14230 4802 22537 19763 24518 11280 11929 24907 21041 13393 9464 2956 5391 16320 13356 7100 16445 9497 21637 2297 2963 7830 23772 23385 4095 22303 9631 24521 24656 8782 13589 15050 19955 6749 9407 18142 14150 12944 8391 5204 12152 24197 17000 9777 13370 1...

output:

25149 25150 25149 25149 25147 25149 25150 25149 25145 25148 25149 25149 25147 25148 25149 25146 25149 25148 25147 25148 25149 25147 25148 25146 25149 25149 25148 25148 25147 25147 25146 25148 25149 25149 25149 25148 25149 25148 25149 25148 25147 25148 25148 25149 25149 25149 25147 25149 25147 25149 ...

result:

ok single line: '25149 25150 25149 25149 25147 ... 25147 25149 25148 25146 25148 '

Test #6:

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

input:

1438
854 8212 43610 4 126 61917 14 2 19 33266 11780 2644 519 82 202 1 3482 341 753 1684 4 17567 25014 79941 29 212 11 1 3 16120 83009 83 36 140 406 162 19 507 444 50 1 13265 2434 23199 1 8144 98379 7 226 36779 9954 8518 4252 32 5 28092 92 17353 1108 49827 5600 10 68 59 32 7 55777 9204 22 128 1236 14...

output:

1437 1438 1437 1402 1436 1437 1430 1385 1430 1437 1437 1437 1437 1437 1437 1348 1437 1436 1438 1437 1402 1437 1437 1437 1432 1435 1431 1348 1401 1437 1437 1435 1433 1435 1435 1438 1430 1437 1437 1434 1348 1437 1437 1437 1348 1438 1437 1424 1437 1437 1436 1437 1436 1433 1416 1437 1436 1437 1437 1437 ...

result:

ok single line: '1437 1438 1437 1402 1436 1437 ... 1385 1437 1432 1437 1437 1437 '

Test #7:

score: 0
Accepted
time: 37ms
memory: 8056kb

input:

99999
15 7691 8 75 6296 715 41 1 34 120 62992 49157 21 696 214 1 75 1559 911 204 118 103 139 11 89246 894 6 8544 24 1246 7289 4 647 12946 142 19 24 134 3 1417 352 166 28 7588 54525 53 29623 230 201 41386 40 19498 5 72 60659 1 32 7568 106 118 48 642 144 2 20 22 86 604 24729 13933 4 3032 182 28 1 3229...

output:

99437 99996 98981 99883 99996 99986 99798 94094 99738 99926 99998 99998 99593 99988 99957 94094 99883 99992 99989 99960 99937 99911 99926 99225 99998 99987 98682 99998 99646 99989 99997 97979 99984 99997 99929 99503 99646 99928 97529 99993 99975 99945 99704 99998 99998 99843 99998 99964 99948 99998 ...

result:

ok single line: '99437 99996 98981 99883 99996 ... 99661 99997 99955 99995 99952 '

Test #8:

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

input:

17462
9732 40 232 703 1537 12 1 3759 1 3 25944 2 116 13674 3002 5830 10573 17 14767 32469 7 4907 4281 1 4792 269 2 3 10 61981 480 4 8951 1 2 129 121 17263 114 91977 70515 1499 21 43 26 2825 37571 898 234 7 68746 134 417 1284 6 52007 2010 9906 2391 81 954 77751 18 1 23617 12 194 777 205 108 16078 88 ...

output:

17459 17430 17453 17458 17460 17329 16418 17461 16418 16999 17461 16853 17446 17461 17461 17462 17461 17388 17461 17461 17269 17461 17461 16418 17461 17456 16853 16999 17351 17461 17459 17118 17461 16418 16853 17450 17454 17461 17451 17461 17461 17459 17389 17423 17407 17461 17461 17458 17456 17269 ...

result:

ok single line: '17459 17430 17453 17458 17460 ... 17276 17456 17460 17461 16418 '

Test #9:

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

input:

8
7 15 1 6 221 60818 38263 2

output:

8 7 7 7 7 7 7 7 

result:

ok single line: '8 7 7 7 7 7 7 7 '

Test #10:

score: 0
Accepted
time: 16ms
memory: 6300kb

input:

89778
53 50 73 51 73 54 57 50 63 49 72 68 51 52 67 63 71 66 58 73 50 66 54 60 53 73 68 73 61 57 60 64 47 51 62 67 54 52 70 70 67 74 64 69 49 56 64 57 63 69 49 49 48 59 55 50 72 64 59 57 51 72 63 59 63 59 54 73 49 63 53 63 69 54 73 64 69 49 57 73 58 68 64 48 74 69 51 56 62 50 70 51 70 69 54 68 61 66 ...

output:

86435 86581 86537 86688 86537 86574 86495 86581 86595 86677 86637 86604 86688 86527 86502 86595 86620 86516 86481 86537 86581 86516 86574 86617 86435 86537 86604 86537 86590 86495 86617 86612 86507 86688 86453 86502 86574 86527 86602 86602 86502 86603 86612 86570 86677 86521 86612 86495 86595 86570 ...

result:

ok single line: '86435 86581 86537 86688 86537 ... 86516 86481 86552 86552 86435 '

Test #11:

score: 0
Accepted
time: 15ms
memory: 6288kb

input:

64782
71 65 72 71 65 73 58 58 48 63 59 54 49 49 51 69 57 54 58 66 63 65 49 61 55 65 67 74 74 54 69 73 68 51 71 64 71 52 59 51 49 55 57 60 72 56 63 63 63 47 51 66 60 66 68 65 65 61 62 61 64 57 66 62 59 70 63 55 68 73 52 67 64 66 55 73 59 60 57 64 74 50 73 49 62 67 63 64 67 67 74 53 49 65 53 55 54 56 ...

output:

62478 62402 62397 62478 62402 62547 62429 62429 62418 62483 62511 62457 62456 62456 62527 62503 62491 62457 62429 62477 62483 62402 62456 62447 62476 62402 62421 62434 62434 62457 62503 62547 62370 62527 62478 62478 62478 62412 62511 62527 62456 62476 62491 62570 62397 62514 62483 62483 62483 62415 ...

result:

ok single line: '62478 62402 62397 62478 62402 ... 62412 62415 62478 62412 62503 '

Test #12:

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

input:

3587
71 61 66 65 59 60 47 60 68 64 57 52 71 59 65 65 57 64 61 50 51 53 52 65 57 47 58 65 73 66 62 54 53 68 71 58 55 59 62 55 53 49 68 68 50 53 68 69 59 70 73 64 47 52 47 48 47 64 51 63 72 52 62 53 47 48 50 52 52 64 74 54 57 59 55 72 60 48 51 73 68 56 64 69 69 67 64 49 69 74 62 71 66 73 57 69 60 73 4...

output:

3461 3459 3477 3458 3460 3460 3445 3460 3459 3450 3464 3452 3461 3460 3458 3458 3464 3450 3459 3461 3475 3452 3452 3458 3464 3445 3472 3458 3454 3477 3445 3473 3452 3459 3461 3472 3466 3460 3445 3466 3452 3447 3459 3459 3461 3452 3459 3461 3460 3467 3454 3450 3445 3452 3445 3470 3445 3450 3475 3450 ...

result:

ok single line: '3461 3459 3477 3458 3460 3460 ... 3457 3463 3459 3452 3460 3450 '

Test #13:

score: 0
Accepted
time: 60ms
memory: 10736kb

input:

95999
85115 66806 42866 43195 79441 54159 61992 44046 3963 368 26401 21230 10997 2850 28075 91415 33771 11373 52374 62356 75811 96546 13616 79638 66148 72990 37799 99144 30876 64167 5860 3541 33965 64537 88323 68310 21913 99829 68084 32876 57167 49137 82082 69975 66633 71875 89350 8796 66653 87996 1...

output:

95996 95998 95998 95998 95998 95998 95998 95997 95997 95998 95996 95998 95997 95997 95997 95998 95997 95997 95996 95996 95998 95998 95997 95997 95998 95998 95997 95998 95997 95997 95996 95995 95996 95998 95996 95999 95995 95997 95997 95998 95997 95996 95997 95996 95996 95997 95998 95997 95997 95997 ...

result:

ok single line: '95996 95998 95998 95998 95998 ... 95996 95996 95997 95998 95993 '

Test #14:

score: 0
Accepted
time: 57ms
memory: 10704kb

input:

99999
54246 23546 22781 10950 80199 72172 97029 45362 61604 84891 32892 4887 24925 90115 90274 4025 25792 94879 55008 35810 8137 64408 18206 86097 26121 78967 33676 18320 96218 3605 31807 51692 96843 58576 65234 93563 23505 65610 10835 82093 3700 18583 18742 64124 15559 62487 48872 84212 73221 96377...

output:

99997 99997 99998 99997 99995 99998 99997 99997 99996 99997 99997 99995 99995 99995 99997 99995 99998 99996 99996 99997 99998 99997 99996 99998 99995 99996 99999 99997 99998 99996 99998 99997 99996 99997 99994 99997 99997 99997 99997 99998 99997 99998 99997 99998 99997 99997 99997 99996 99996 99998 ...

result:

ok single line: '99997 99997 99998 99997 99995 ... 99997 99998 99998 99998 99998 '

Test #15:

score: 0
Accepted
time: 33ms
memory: 8460kb

input:

55748
28835 40211 5508 11735 23436 35807 34667 50567 699 35801 18197 27339 35795 6052 50687 15205 53395 53474 31955 34260 1162 45325 31324 3145 20248 18078 45456 11214 19042 6719 5692 38577 2210 27608 32942 41834 5860 24944 21851 18676 37840 19379 24141 26546 20505 38768 36072 30074 50672 49661 5399...

output:

55745 55746 55747 55745 55746 55747 55746 55746 55746 55744 55746 55746 55745 55747 55744 55747 55746 55746 55747 55746 55746 55745 55747 55746 55746 55747 55746 55747 55747 55746 55745 55747 55747 55745 55747 55743 55746 55747 55745 55747 55746 55747 55745 55744 55746 55747 55748 55747 55745 55747 ...

result:

ok single line: '55745 55746 55747 55745 55746 ... 55744 55746 55747 55747 55746 '

Test #16:

score: 0
Accepted
time: 27ms
memory: 7624kb

input:

68279
30 129 102 35148 16490 26 14361 39 81 441 66 3844 502 16666 131 303 2544 51231 32 1 16 32 8 26488 15283 343 83 8 94 78629 665 20 1 4 490 8814 431 14411 66 130 7499 272 2323 3 10 53503 3 49145 550 16800 3204 52639 41458 75112 1903 184 20955 48199 185 62 25 268 201 375 51618 2286 8 930 4409 3393...

output:

68093 68237 68228 68278 68277 68066 68278 68146 68221 68262 68190 68278 68265 68277 68223 68261 68278 68278 68059 64104 67939 68059 67541 68278 68275 68256 68198 67541 68217 68278 68267 68019 64104 66911 68273 68278 68266 68278 68190 68235 68278 68262 68276 66608 67722 68278 66608 68278 68269 68278 ...

result:

ok single line: '68093 68237 68228 68278 68277 ... 68276 68278 67659 68256 68278 '

Test #17:

score: 0
Accepted
time: 6ms
memory: 6320kb

input:

23015
418 3364 9 4 2 190 22 27 54 1472 9 11956 12974 350 29 11 3 370 38 48 151 1599 31368 9353 30869 20 22538 38262 4 12 59 1 211 10589 206 23 617 167 30092 8231 3333 10 56900 23 20301 1225 1919 202 1 23 284 3 13426 1 261 156 2 35 3 27667 15 10 15 34 1320 327 24443 2072 83133 5 830 40946 28 601 620 ...

output:

23009 23013 22818 22602 22198 23000 22903 22937 22983 23010 22818 23014 23014 23003 22951 22831 22440 23009 22963 22974 23002 23013 23014 23013 23014 22904 23015 23014 22602 22845 22971 21604 23006 23014 22999 22935 23012 22997 23014 23014 23013 22803 23014 22935 23014 23012 23011 23007 21604 22935 ...

result:

ok single line: '23009 23013 22818 22602 22198 ... 23011 23005 23014 22996 22871 '

Test #18:

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

input:

79920
30124 3682 8 88 91 386 1 1043 223 1298 43 7952 9 15312 30961 43685 79373 1 6719 710 2 146 7337 47 61 1 23807 164 16 31194 6004 49925 12568 128 25 32 3 45 128 28 15 1564 161 76 30512 6 9119 3947 4 10 2 1 6 1 14 2 88 55 2 42 2 76998 2 31549 7 35291 26012 2596 4 14 20 27 5992 2 2752 70833 850 594...

output:

79919 79918 79078 79827 79842 79902 75251 79911 79889 79915 79761 79919 79196 79919 79919 79919 79919 75251 79919 79910 77093 79879 79918 79774 79800 75251 79918 79879 79470 79919 79918 79917 79918 79856 79609 79678 77902 79777 79856 79681 79476 79916 79882 79821 79919 78849 79919 79916 78351 79223 ...

result:

ok single line: '79919 79918 79078 79827 79842 ... 79870 75251 79919 79919 79916 '

Test #19:

score: 0
Accepted
time: 27ms
memory: 7760kb

input:

84215
494 1 16 76 4864 16623 1 304 179 99700 189 6813 1 888 86 1 2 3 5025 14803 2 93246 87903 2 7 1 2593 27 64 351 23860 1 9615 27519 140 9 13 5338 53 12 2 1 12 1835 128 2 24058 172 508 4045 292 324 1083 24 474 4563 2646 31428 733 4 33 13664 3 1 19 31068 27894 102 1 3581 1543 2 1 35 125 75492 5163 7...

output:

84205 79261 83767 84117 84211 84214 79261 84197 84179 84214 84181 84213 79261 84205 84127 79261 81211 82144 84214 84213 81211 84214 84214 81211 83231 79261 84210 83940 84100 84190 84214 79261 84213 84214 84161 83500 83651 84212 84079 83598 81211 79261 83598 84210 84160 81211 84213 84175 84200 84213 ...

result:

ok single line: '84205 79261 83767 84117 84211 ... 83855 79261 84203 82896 84043 '

Test #20:

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

input:

1028
61 65 63 55 70 62 69 73 52 50 69 71 73 61 51 68 47 60 54 71 48 64 70 72 48 58 53 63 69 63 49 63 65 61 48 58 68 59 61 71 69 67 69 58 69 66 70 64 52 72 48 61 54 59 67 69 66 71 72 52 47 71 49 68 64 54 61 50 51 74 73 71 62 60 56 64 71 72 53 52 74 68 49 62 64 49 53 53 70 57 71 48 63 68 56 55 73 53 7...

output:

988 993 990 990 995 985 991 992 991 1005 991 985 992 988 999 989 993 998 994 985 998 997 995 987 998 984 993 990 991 990 985 990 993 988 998 984 989 999 988 985 991 995 991 984 991 975 995 997 991 987 998 988 994 999 995 991 975 985 987 991 993 985 985 989 997 994 988 1005 999 989 992 985 985 998 99...

result:

ok single line: '988 993 990 990 995 985 991 99...85 985 993 993 995 990 997 993 '

Test #21:

score: 0
Accepted
time: 23ms
memory: 6504kb

input:

99996
51 48 47 61 59 66 73 67 73 61 71 55 52 64 57 55 55 52 74 50 57 53 61 64 68 73 65 64 61 50 72 56 49 56 56 48 68 67 64 64 70 58 67 74 55 69 62 47 64 55 73 58 58 73 57 54 66 54 55 57 62 71 63 67 65 60 66 67 57 69 55 63 57 72 67 54 70 59 59 74 63 61 53 58 62 69 73 50 52 55 47 52 48 59 55 69 74 58 ...

output:

96471 96406 96499 96374 96331 96313 96347 96530 96347 96374 96435 96414 96520 96437 96485 96414 96414 96520 96358 96338 96485 96462 96374 96437 96455 96347 96503 96437 96374 96338 96460 96447 96381 96447 96447 96406 96455 96530 96437 96437 96349 96363 96530 96358 96414 96481 96522 96499 96437 96414 ...

result:

ok single line: '96471 96406 96499 96374 96331 ... 96363 96447 96455 96485 96349 '

Test #22:

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

input:

3920
59 71 64 60 52 48 47 58 53 48 61 71 55 63 66 69 63 70 72 57 60 70 62 61 55 53 71 65 53 56 57 47 62 53 65 70 63 49 57 70 57 66 65 64 51 67 49 55 74 54 64 50 72 74 73 71 71 63 55 71 50 52 72 58 67 59 65 70 54 57 54 59 51 66 73 73 59 59 67 68 62 49 61 51 63 73 62 65 57 51 56 55 53 67 50 63 74 48 5...

output:

3783 3784 3782 3782 3782 3771 3788 3765 3776 3771 3771 3784 3782 3769 3778 3783 3769 3789 3775 3771 3782 3789 3778 3771 3782 3776 3784 3789 3776 3801 3771 3788 3778 3776 3789 3789 3769 3776 3771 3789 3771 3778 3789 3782 3801 3791 3776 3782 3763 3767 3782 3795 3775 3763 3764 3784 3784 3769 3782 3784 ...

result:

ok single line: '3783 3784 3782 3782 3782 3771 ... 3782 3782 3776 3788 3767 3801 '

Test #23:

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

input:

788
19917 12903 66975 90451 1985 81976 94656 61993 84191 75034 72716 48476 29944 5377 76329 1944 99260 15048 83296 62056 86732 72866 45041 38763 8937 76748 11027 76549 81549 12558 70856 42952 88586 70147 2416 4953 85213 79567 39434 84149 63788 18257 77165 3412 10000 13795 49504 7042 70762 73776 6666...

output:

787 787 787 787 787 788 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 788 787 787 787 787 787 787 787 787 787 788 787 787 788 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 787 ...

result:

ok single line: '787 787 787 787 787 788 787 78...87 787 787 787 787 787 787 787 '

Test #24:

score: 0
Accepted
time: 6ms
memory: 6304kb

input:

12345
12110 6738 3101 4675 11987 7155 11274 11004 7227 2389 7780 10987 4229 10490 4803 10662 11944 7687 919 8304 3741 9869 9834 9814 8265 8071 215 597 1424 4383 293 7059 8615 10636 699 4919 5722 87 11582 4234 792 9056 3762 9848 11387 11800 4873 5973 11197 4967 970 655 877 8886 7994 4418 1490 501 113...

output:

12343 12344 12343 12343 12343 12344 12343 12344 12344 12344 12344 12342 12343 12341 12342 12344 12343 12340 12344 12344 12341 12343 12342 12342 12343 12344 12341 12341 12344 12344 12343 12343 12343 12344 12343 12342 12343 12342 12344 12345 12344 12344 12344 12343 12342 12344 12343 12345 12341 12343 ...

result:

ok single line: '12343 12344 12343 12343 12343 ... 12341 12344 12341 12344 12342 '

Test #25:

score: 0
Accepted
time: 4ms
memory: 6244kb

input:

15927
9394 939 14601 11545 2783 1327 14158 7050 8658 5781 532 14006 4736 8151 9228 11748 15608 1678 2424 14598 13982 15603 3374 1473 10927 8935 861 7753 14835 11737 122 3073 10373 4653 12920 686 5992 8611 11624 13016 2559 9615 15406 11681 7 5141 4994 6954 9262 6610 13240 10949 3958 10796 7532 13522 ...

output:

15925 15925 15925 15926 15926 15924 15925 15926 15926 15926 15926 15922 15924 15924 15924 15925 15925 15925 15926 15926 15926 15925 15923 15924 15925 15924 15926 15926 15925 15923 15926 15925 15926 15926 15925 15925 15926 15923 15925 15925 15925 15924 15925 15924 15925 15926 15926 15926 15925 15922 ...

result:

ok single line: '15925 15925 15925 15926 15926 ... 15925 15926 15926 15924 15923 '

Test #26:

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

input:

52995
2 2843 12 332 17188 1691 9881 1409 82853 264 5 160 8610 109 9666 67184 33458 47490 3527 49668 43 1972 44 6 7 5 19 13860 6418 2 133 69184 29626 10 1 2 372 27 32 749 1031 78 588 17878 6771 12 2 9 44 3 277 96715 1 8213 2231 24 50868 346 6 15510 42 1 122 1550 337 862 57 155 12 1423 137 35 2825 174...

output:

51061 52992 52628 52978 52994 52991 52992 52993 52994 52980 52165 52962 52993 52942 52993 52994 52994 52994 52993 52994 52897 52993 52888 52272 52408 52165 52742 52994 52994 51061 52959 52993 52994 52539 49796 51061 52984 52819 52855 52989 52991 52935 52984 52994 52993 52628 51061 52468 52888 51614 ...

result:

ok single line: '51061 52992 52628 52978 52994 ... 52994 52983 52995 52994 52994 '

Test #27:

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

input:

2845
2 17956 401 3 379 32 21955 3079 298 8990 1 8727 1 17320 944 7828 89 46013 13 139 272 20 8531 7669 9227 86 1420 15 46 7470 7351 63 698 1033 3 69094 5 54 5 36108 30 444 3503 47 111 447 2 24 60910 19712 6 10637 207 229 414 1 1906 456 20068 3048 1 10269 202 13 42 448 23511 620 14 46 31952 97 364 15...

output:

2761 2844 2844 2764 2843 2839 2844 2845 2844 2844 2682 2844 2682 2843 2844 2844 2841 2844 2828 2842 2844 2824 2844 2844 2844 2840 2844 2827 2842 2844 2844 2842 2843 2843 2764 2844 2797 2838 2797 2844 2831 2843 2844 2837 2841 2844 2761 2839 2844 2844 2820 2844 2843 2845 2844 2682 2844 2842 2844 2845 ...

result:

ok single line: '2761 2844 2844 2764 2843 2839 ... 2844 2844 2843 2844 2829 2844 '

Test #28:

score: 0
Accepted
time: 37ms
memory: 8072kb

input:

99995
105 1020 33 1 17514 281 27690 65242 1754 1766 279 4926 38972 588 3 305 129 36 59 10 369 56122 7997 264 1699 8185 485 2171 182 5 6861 1455 663 83 3 90142 461 52 11 8 5 2250 170 55187 793 41 1 1204 568 65198 28 727 2211 29 6 93893 6 1 55847 54 1979 3 25980 28 2 3 1 66 303 117 39 244 28999 25173 ...

output:

99890 99988 99740 93981 99993 99963 99994 99994 99992 99989 99957 99992 99994 99979 97474 99963 99927 99764 99841 99166 99963 99994 99993 99964 99988 99992 99966 99990 99949 98441 99990 99988 99984 99898 97474 99994 99974 99827 99202 98957 98441 99992 99936 99994 99987 99793 93981 99986 99978 99994 ...

result:

ok single line: '99890 99988 99740 93981 99993 ... 99659 99994 99873 99513 93981 '

Test #29:

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

input:

2549
65 80943 7304 38996 4 8314 16803 41 294 19517 60656 402 1479 20 2814 139 40 59602 718 1657 13388 11345 299 1023 1508 20 5 1735 809 85 125 44 97964 491 178 16853 308 353 1084 11624 2 63 38758 12 71 519 5 10 298 19 1690 9484 7 54 678 3993 22 7 690 390 98 231 44181 147 39 10334 182 3567 1215 429 1...

output:

2542 2548 2548 2548 2493 2549 2548 2542 2546 2548 2548 2548 2548 2530 2548 2546 2542 2548 2547 2548 2548 2548 2548 2549 2548 2530 2506 2548 2546 2548 2545 2543 2548 2549 2547 2548 2547 2546 2547 2548 2458 2544 2548 2530 2545 2548 2506 2526 2547 2539 2548 2548 2519 2546 2548 2548 2543 2519 2548 2548 ...

result:

ok single line: '2542 2548 2548 2548 2493 2549 ... 2391 2548 2526 2458 2524 2548 '

Test #30:

score: 0
Accepted
time: 16ms
memory: 6388kb

input:

69842
65 63 62 47 61 57 54 70 70 55 50 68 72 57 53 50 56 74 59 47 66 72 61 47 51 65 63 70 64 67 69 70 66 74 67 63 67 70 57 61 74 57 53 74 59 49 50 49 54 68 56 62 57 64 72 54 62 59 53 69 74 56 51 53 55 60 60 70 74 52 47 61 50 74 69 47 74 53 74 53 56 70 48 66 62 54 71 59 63 74 58 70 59 70 68 63 56 57 ...

output:

67328 67314 67254 67375 67364 67359 67292 67390 67390 67417 67306 67355 67424 67359 67349 67306 67404 67328 67358 67375 67394 67424 67364 67375 67316 67328 67314 67390 67356 67395 67286 67390 67394 67328 67395 67314 67395 67390 67359 67364 67328 67359 67349 67328 67358 67320 67306 67320 67292 67355 ...

result:

ok single line: '67328 67314 67254 67375 67364 ... 67364 67328 67328 67259 67286 '

Test #31:

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

input:

3179
67 54 63 74 70 58 49 68 73 47 71 65 50 47 60 57 50 55 67 54 54 56 67 56 48 57 55 54 70 55 65 68 61 65 49 56 53 74 64 54 58 59 57 61 53 57 73 62 51 60 51 57 64 56 59 50 70 66 62 61 69 65 49 48 69 70 50 72 48 59 51 47 59 53 61 54 69 57 74 74 54 65 70 47 69 51 51 64 56 55 60 52 66 47 71 68 52 50 5...

output:

3066 3067 3072 3048 3046 3087 3059 3059 3076 3073 3076 3082 3057 3073 3065 3064 3057 3055 3066 3067 3067 3070 3066 3070 3060 3064 3055 3067 3046 3055 3082 3059 3076 3082 3059 3070 3071 3048 3070 3067 3087 3060 3064 3076 3071 3064 3076 3053 3068 3065 3068 3064 3070 3070 3060 3057 3046 3057 3053 3076 ...

result:

ok single line: '3066 3067 3072 3048 3046 3087 ... 3060 3057 3087 3053 3072 3057 '

Test #32:

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

input:

73114
51 68 72 69 62 53 67 64 65 68 60 56 64 71 67 68 59 70 65 56 53 55 51 60 72 60 73 74 73 63 65 51 69 74 62 73 65 72 56 71 56 48 71 51 64 74 58 61 47 69 71 67 63 57 66 54 55 67 54 74 59 56 53 48 73 50 51 51 67 62 62 59 50 50 57 59 72 69 53 68 73 60 52 48 69 67 74 66 58 61 64 66 56 50 52 51 58 54 ...

output:

70513 70606 70518 70521 70429 70425 70484 70470 70507 70606 70504 70462 70470 70471 70484 70606 70510 70450 70507 70462 70425 70548 70513 70504 70518 70504 70578 70476 70578 70640 70507 70513 70521 70476 70429 70578 70507 70518 70462 70471 70462 70482 70471 70513 70470 70476 70455 70486 70464 70521 ...

result:

ok single line: '70513 70606 70518 70521 70429 ... 70541 70537 70518 70464 70455 '

Test #33:

score: 0
Accepted
time: 31ms
memory: 8676kb

input:

49725
32445 65871 46329 47307 41762 54021 29499 18543 53472 35207 89234 14076 68577 71600 3517 23285 83494 92235 31762 81749 30532 75529 39310 13002 26591 12482 69876 39126 91656 84738 25770 57831 27515 42061 44233 75498 97201 14261 21203 30930 29108 97399 61013 77667 30957 32322 74997 36540 19647 1...

output:

49724 49722 49724 49724 49723 49724 49724 49723 49723 49724 49724 49723 49725 49724 49723 49723 49724 49723 49723 49724 49724 49723 49724 49722 49723 49724 49723 49724 49724 49724 49724 49724 49724 49724 49724 49723 49724 49724 49724 49723 49724 49724 49723 49723 49724 49724 49724 49724 49723 49724 ...

result:

ok single line: '49724 49722 49724 49724 49723 ... 49724 49724 49723 49723 49724 '

Test #34:

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

input:

33929
4130 15164 9744 13553 1700 8986 13581 29200 9124 7849 21704 22493 22917 7466 27462 10631 21448 3430 16205 14204 8249 12622 18528 1157 6883 11347 9884 8587 3637 15673 29901 11111 25000 11012 2333 22125 6867 24560 28104 21719 27016 6798 4907 6581 25402 27350 20870 7952 2480 1999 22252 28388 2656...

output:

33928 33928 33927 33926 33928 33928 33926 33927 33926 33927 33927 33928 33927 33928 33926 33928 33927 33926 33926 33927 33928 33929 33928 33928 33928 33928 33928 33928 33928 33927 33927 33925 33928 33927 33928 33926 33927 33927 33928 33928 33927 33927 33928 33926 33928 33928 33927 33927 33927 33927 ...

result:

ok single line: '33928 33928 33927 33926 33928 ... 33927 33928 33927 33926 33929 '

Test #35:

score: 0
Accepted
time: 58ms
memory: 11056kb

input:

99998
16840 39868 2197 37973 63446 20500 59857 52752 19452 73314 52057 66866 40015 75696 90859 33525 8125 8798 39748 52274 91137 95966 72494 8262 60025 92800 81626 68924 21195 84649 21169 81667 4840 61365 78310 93273 21888 75756 98436 70250 7198 34944 67087 76775 18574 22319 95550 40999 96438 41295 ...

output:

99997 99997 99997 99995 99996 99995 99997 99996 99996 99995 99997 99996 99995 99997 99996 99997 99997 99993 99996 99997 99995 99996 99997 99997 99996 99997 99996 99997 99994 99996 99992 99997 99996 99997 99995 99995 99996 99995 99996 99995 99996 99997 99997 99995 99997 99997 99995 99996 99996 99994 ...

result:

ok single line: '99997 99997 99997 99995 99996 ... 99995 99998 99997 99996 99996 '

Test #36:

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

input:

1036
192 2 8430 93 298 4 10717 1 55265 1 7 30265 2050 30807 298 237 4 1 202 3 1438 1097 23 28 1167 9 2 7923 27961 84 1102 5 1676 1 540 99919 5 7 6 484 1 83 62767 3595 9 1482 155 4858 2 1 1 243 18 467 53 4991 9974 80888 4 124 1 33878 187 30 60814 8718 1 5 1 10005 1 7 162 102 18016 2 4 10 521 19518 2 ...

output:

1035 1006 1035 1035 1034 1017 1035 964 1035 964 1013 1035 1035 1035 1034 1035 1017 964 1035 1016 1035 1035 1031 1036 1035 1023 1006 1035 1035 1035 1035 1019 1034 964 1036 1035 1019 1013 1022 1035 964 1031 1035 1035 1023 1035 1035 1035 1006 964 964 1033 1027 1035 1034 1035 1035 1035 1017 1035 964 103...

result:

ok single line: '1035 1006 1035 1035 1034 1017 ... 1035 1027 1034 1013 1035 1035 '

Test #37:

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

input:

12
8316 51 128 1 25126 2 1 2 4 83 303 85495

output:

11 11 11 10 11 10 10 10 11 11 11 11 

result:

ok single line: '11 11 11 10 11 10 10 10 11 11 11 11 '

Test #38:

score: 0
Accepted
time: 29ms
memory: 7672kb

input:

76171
3 2 55 68 1674 4 188 208 341 15915 2 224 5500 99 2 1557 1554 114 6766 63610 9 32 53 248 18 60 64473 45973 1470 95 84 6179 618 26 3 1 18415 15361 17622 41 2 2581 9 105 7 1036 51 370 55634 331 7046 1805 41 4 43764 52895 11 141 59 50 52 60480 11401 116 4290 145 1 22452 3 723 34 204 42495 1 64 842...

output:

74290 73438 76064 76069 76165 74709 76134 76129 76157 76170 73438 76138 76169 76110 73438 76167 76161 76111 76170 76170 75498 75947 76045 76142 75799 76047 76170 76170 76167 76113 76111 76170 76155 75926 74290 71631 76170 76168 76170 75999 73438 76167 75498 76108 75237 76164 76040 76159 76170 76149 ...

result:

ok single line: '74290 73438 76064 76069 76165 ... 76116 76167 76169 74967 76169 '

Test #39:

score: 0
Accepted
time: 15ms
memory: 6940kb

input:

51030
7 94637 3351 52978 105 1 2079 39438 90 1664 464 52853 23 155 440 3 27546 602 39159 4 1323 37 6 2114 55678 32933 65427 14569 40204 95 7843 8 14 6 4 26 121 1 3412 38 25274 12100 6165 66538 616 4028 26544 349 3734 11 1558 14 502 2 1049 2 54909 12 32 6500 729 22 52654 7 3079 1 1 332 3850 274 155 3...

output:

50442 51029 51029 51029 50989 48030 51027 51029 50988 51026 51014 51028 50868 50996 51021 49779 51029 51022 51029 50021 51026 50902 50350 51026 51029 51029 51029 51029 51029 50987 51029 50494 50712 50350 50021 50856 50992 48030 51027 50918 51029 51030 51028 51029 51025 51027 51029 51010 51027 50661 ...

result:

ok single line: '50442 51029 51029 51029 50989 ... 51006 50998 49157 51029 51025 '

Test #40:

score: 0
Accepted
time: 3ms
memory: 6020kb

input:

25456
71 63 67 57 55 64 48 69 47 59 58 63 59 53 48 74 48 51 53 50 62 61 51 56 57 70 71 70 48 74 53 66 62 54 52 71 53 57 74 49 64 71 69 74 66 58 51 71 57 49 69 74 55 62 62 59 58 55 52 55 64 65 61 55 73 56 51 60 66 52 65 61 53 68 60 54 58 59 68 72 57 61 54 64 67 65 58 59 71 59 52 54 70 68 59 64 54 49 ...

output:

24571 24492 24557 24500 24533 24560 24568 24543 24580 24534 24535 24492 24534 24488 24568 24549 24568 24580 24488 24569 24539 24514 24580 24567 24500 24546 24571 24546 24568 24549 24488 24541 24539 24545 24566 24571 24488 24500 24549 24549 24560 24571 24543 24549 24541 24535 24580 24571 24500 24549 ...

result:

ok single line: '24571 24492 24557 24500 24533 ... 24618 24580 24578 24568 24560 '

Test #41:

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

input:

77356
47 54 51 58 68 72 73 53 54 65 54 57 59 70 56 73 60 60 60 66 51 55 69 50 67 47 59 54 72 58 69 54 49 56 68 60 60 69 73 63 70 57 65 48 61 74 54 65 54 70 71 58 73 65 48 66 69 48 67 67 72 74 64 74 61 49 66 70 47 64 70 50 66 74 50 53 56 74 72 67 63 57 73 50 54 48 47 54 52 71 62 52 55 48 58 58 48 57 ...

output:

74654 74557 74651 74550 74529 74549 74532 74631 74557 74646 74557 74577 74615 74622 74671 74532 74684 74684 74684 74583 74651 74628 74613 74485 74604 74654 74615 74557 74549 74550 74613 74557 74575 74671 74529 74684 74684 74613 74532 74505 74622 74577 74646 74534 74578 74510 74557 74646 74557 74622 ...

result:

ok single line: '74654 74557 74651 74550 74529 ... 74593 74485 74549 74485 74593 '

Test #42:

score: 0
Accepted
time: 23ms
memory: 6508kb

input:

99998
55 54 64 49 66 48 63 68 70 66 59 56 55 65 57 57 60 62 62 69 47 70 73 66 53 68 70 67 70 57 74 66 55 50 52 55 53 57 61 55 52 54 58 61 64 52 54 59 71 72 65 68 67 73 63 48 74 62 71 69 48 64 48 61 65 73 48 56 50 61 48 72 51 72 67 59 72 74 58 52 47 69 48 49 69 58 47 58 52 53 64 66 60 62 53 73 71 59 ...

output:

96415 96311 96336 96475 96505 96432 96380 96489 96411 96505 96483 96509 96415 96402 96406 96406 96448 96420 96420 96505 96340 96411 96336 96505 96483 96489 96411 96500 96411 96406 96414 96505 96415 96459 96374 96415 96483 96406 96397 96415 96374 96311 96317 96397 96336 96374 96311 96483 96493 96455 ...

result:

ok single line: '96415 96311 96336 96475 96505 ... 96505 96459 96505 96414 96483 '

Test #43:

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

input:

59
97461 12593 22559 99338 23887 95686 96299 72068 80857 6081 29022 25451 55225 85171 64715 15510 90352 74367 87782 82020 2263 74328 58333 86645 5404 90553 11425 96958 98742 60203 73176 43432 29591 451 92229 36324 59366 43446 96412 20393 76169 13382 16043 59243 92634 94128 20259 19836 24308 29157 92...

output:

58 58 58 58 58 59 58 58 58 58 58 58 58 58 59 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 59 58 

result:

ok single line: '58 58 58 58 58 59 58 58 58 58 ... 58 58 58 58 58 58 58 58 59 58 '

Test #44:

score: 0
Accepted
time: 27ms
memory: 8092kb

input:

47634
31039 26505 36025 31472 43115 43755 24377 14018 30942 26456 11217 8365 30202 13944 25076 26181 9466 4110 12629 30016 42253 45360 37623 44383 17069 38918 41523 10809 39182 24312 3992 37753 22892 36336 8790 27168 20934 39754 3798 36895 27683 36932 43784 24756 40075 15402 46388 16032 42124 9792 2...

output:

47632 47633 47632 47633 47632 47630 47632 47631 47632 47633 47633 47630 47632 47633 47632 47632 47632 47633 47633 47633 47633 47633 47633 47633 47631 47634 47632 47633 47633 47634 47633 47632 47633 47633 47632 47633 47633 47631 47632 47631 47632 47632 47633 47631 47632 47633 47632 47631 47629 47632 ...

result:

ok single line: '47632 47633 47632 47633 47632 ... 47630 47632 47633 47634 47632 '

Test #45:

score: 0
Accepted
time: 34ms
memory: 8520kb

input:

59878
24092 11028 51412 31465 7426 27350 29468 46372 52945 39056 38029 46105 32548 34854 33571 2537 41189 12015 53446 9409 17384 24977 37191 12161 34095 7172 1256 12164 38207 50052 996 40032 39285 27780 54661 49299 26998 7253 48080 16315 20521 34723 45936 24144 45318 37349 21000 5190 20817 9508 3250...

output:

59876 59875 59876 59872 59877 59875 59876 59876 59875 59876 59876 59874 59876 59873 59874 59877 59876 59876 59876 59877 59877 59876 59875 59876 59876 59874 59877 59876 59876 59877 59877 59875 59878 59875 59877 59875 59877 59877 59875 59876 59876 59877 59876 59876 59877 59877 59876 59877 59877 59876 ...

result:

ok single line: '59876 59875 59876 59872 59877 ... 59877 59875 59876 59876 59876 '

Test #46:

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

input:

41353
7337 2 11625 1 14 34064 7 4 16165 4 571 73 40 24098 26 249 4982 2163 3145 1616 1989 9 28818 93948 1 64845 1 10 30573 6299 4 290 96578 37 1222 27290 35106 644 61 454 1 326 1145 876 23483 3 8264 20 2131 853 804 1 27067 17493 3 1385 5 26 4468 1794 313 79 1 20 16 8 3914 3737 429 179 8 17169 2 496 ...

output:

41352 39861 41352 38856 41091 41352 40838 40556 41352 40556 41348 41305 41249 41352 41212 41335 41351 41351 41350 41350 41351 40980 41350 41352 38856 41352 38856 41016 41352 41350 40556 41345 41352 41257 41351 41352 41352 41342 41289 41347 38856 41341 41350 41349 41352 40350 41352 41165 41350 41349 ...

result:

ok single line: '41352 39861 41352 38856 41091 ... 41351 41304 41326 41346 41326 '

Test #47:

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

input:

632
55 4192 20 688 55327 2 896 3 53 9 2574 2 1 290 316 51 11 838 882 3191 50541 7094 1 138 187 6084 2 2 8542 1 1044 3287 6897 407 96976 5 86476 10739 18 4 511 1 128 3903 3523 4 54 1 71980 1 2 109 122 19843 9 729 136 172 1477 1 17 1 28508 7 38 3446 29 1459 194 1710 8 8307 1 88 17 199 1 161 153 853 5 ...

output:

628 631 628 632 631 610 631 620 631 623 631 610 592 631 631 629 629 631 631 631 631 631 592 631 631 630 610 610 631 592 631 631 631 631 631 623 631 631 631 622 631 592 631 631 631 622 631 592 631 592 610 631 631 631 623 631 631 632 631 592 628 592 631 621 628 631 629 631 631 631 626 631 592 630 628 ...

result:

ok single line: '628 631 628 632 631 610 631 62...31 631 631 630 631 631 630 631 '

Test #48:

score: 0
Accepted
time: 27ms
memory: 7660kb

input:

69471
255 62842 5897 69 3 9786 19 3 2331 7184 333 80 104 35 47985 53 903 27 204 78 1326 39 14 11355 8929 13501 5877 913 635 3 1050 102 21 4 89 25 7871 25646 3 7 2762 2535 28179 34 144 8 12 2 1 734 1 40 3 4 3 47805 2116 38159 21851 26 3457 8 31 1163 34402 5690 323 25347 1178 58 1372 1325 13 63604 65 ...

output:

69457 69470 69468 69394 67686 69469 69178 67686 69470 69470 69452 69409 69409 69300 69469 69355 69456 69270 69436 69389 69464 69328 69039 69470 69470 69469 69469 69461 69460 67686 69463 69408 69187 68115 69402 69236 69468 69470 67686 68653 69469 69468 69470 69307 69423 68764 68987 67076 65276 69465 ...

result:

ok single line: '69457 69470 69468 69394 67686 ... 69462 69162 69470 69459 69236 '

Test #49:

score: 0
Accepted
time: 37ms
memory: 8260kb

input:

99999
873 528 640 51685 1 35787 3786 48 44 4234 402 2177 10 122 198 2 52 190 85042 379 33354 757 813 1030 1 62 32 1 31036 31 366 72 353 2204 9732 17 19 519 463 134 11851 34633 4812 1706 5001 1 5 128 6 1098 22 607 274 249 8 28 29 22 24 17 2 542 12 75683 139 429 25967 403 6 18163 1222 13 49971 25064 2...

output:

99988 99981 99985 99998 94041 99998 99993 99823 99812 99993 99977 99993 99152 99929 99964 96428 99842 99953 99998 99976 99998 99988 99993 99991 94041 99843 99743 94041 99998 99717 99977 99875 99977 99997 99997 99517 99531 99985 99981 99925 99998 99997 99996 99990 99998 94041 98396 99929 98725 99988 ...

result:

ok single line: '99988 99981 99985 99998 94041 ... 99998 98725 94041 99997 99908 '

Test #50:

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

input:

95
61 70 68 60 71 66 53 49 67 74 56 68 71 74 60 54 73 68 70 68 71 68 54 58 47 72 66 48 58 62 64 47 72 62 52 61 68 66 63 48 72 61 61 66 72 53 60 70 58 65 57 48 60 57 49 65 70 62 69 56 65 56 54 72 71 69 59 70 50 57 74 72 69 57 67 49 74 64 58 55 67 74 64 55 71 51 55 64 55 55 48 47 47 50 62

output:

91 90 89 91 90 91 93 92 92 90 92 89 90 90 91 92 94 89 90 89 90 89 92 91 91 89 91 91 91 91 91 91 89 91 94 91 89 91 94 91 89 91 91 91 89 93 91 90 91 92 91 91 91 91 92 92 90 91 92 92 92 92 92 89 90 92 94 90 93 91 90 89 92 91 92 92 90 91 91 90 92 90 91 90 90 94 90 91 90 90 91 91 91 93 91 

result:

ok single line: '91 90 89 91 90 91 93 92 92 90 ... 94 90 91 90 90 91 91 91 93 91 '

Test #51:

score: 0
Accepted
time: 4ms
memory: 5816kb

input:

11651
61 59 58 63 50 69 68 62 61 74 50 58 69 60 54 52 55 59 55 47 50 48 71 74 55 69 61 67 52 58 57 51 51 73 66 58 50 62 62 57 72 50 62 72 61 51 52 69 64 52 57 55 50 65 68 64 47 63 71 54 49 62 49 57 62 62 52 64 53 58 64 67 62 51 71 54 73 50 60 60 74 56 50 72 56 49 60 70 59 67 61 54 56 51 55 51 50 68 ...

output:

11221 11235 11302 11195 11236 11245 11230 11254 11221 11240 11236 11302 11245 11195 11216 11220 11241 11235 11241 11260 11236 11252 11247 11240 11241 11245 11221 11255 11220 11302 11194 11208 11208 11229 11210 11302 11236 11254 11254 11194 11253 11236 11254 11253 11221 11208 11220 11245 11245 11220 ...

result:

ok single line: '11221 11235 11302 11195 11236 ... 11245 11208 11216 11260 11208 '

Test #52:

score: 0
Accepted
time: 9ms
memory: 6364kb

input:

64637
70 71 62 74 62 69 64 59 71 63 50 51 58 66 70 60 52 72 49 49 54 61 57 72 71 71 52 65 71 52 48 48 69 58 64 63 50 71 70 63 47 65 52 59 74 69 58 52 57 62 74 49 64 53 49 57 62 66 52 50 53 63 54 55 69 51 74 69 65 58 50 53 73 56 55 73 56 52 55 71 56 56 53 73 71 74 57 47 64 47 63 56 69 64 51 49 63 73 ...

output:

62309 62388 62302 62252 62302 62321 62364 62279 62388 62379 62370 62295 62309 62342 62309 62380 62340 62341 62416 62416 62282 62251 62289 62341 62388 62388 62340 62303 62388 62340 62427 62427 62321 62309 62364 62379 62370 62388 62309 62379 62354 62303 62340 62279 62252 62321 62309 62340 62289 62302 ...

result:

ok single line: '62309 62388 62302 62252 62302 ... 62354 62388 62354 62252 62310 '

Test #53:

score: 0
Accepted
time: 36ms
memory: 9460kb

input:

64771
12088 85112 80205 57912 46194 68424 45040 76024 79105 27810 12055 21873 52126 31203 87764 26359 85597 72723 88045 52403 57069 78383 80035 6317 13575 31796 66990 34257 45731 3200 25273 57011 29867 76470 86344 99287 90050 96112 61042 7106 15118 59628 25816 11169 24453 73043 55376 99388 10024 211...

output:

64770 64769 64766 64770 64770 64770 64769 64770 64769 64770 64770 64769 64770 64769 64770 64769 64770 64769 64769 64768 64769 64769 64770 64769 64768 64769 64769 64770 64769 64770 64770 64769 64769 64770 64767 64770 64769 64769 64770 64770 64770 64769 64770 64769 64769 64769 64769 64769 64769 64769 ...

result:

ok single line: '64770 64769 64766 64770 64770 ... 64768 64770 64769 64770 64770 '

Test #54:

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

input:

39320
31315 12214 33419 4464 28721 18343 27340 37076 23640 37579 35555 1340 7073 9035 16033 25139 31800 12681 22415 8795 1075 14988 1966 5825 24987 12748 14553 23289 22138 17702 33583 37010 35234 10158 4655 32677 14564 2871 16829 14427 36315 10191 32081 30514 3378 337 29936 28986 1253 17276 18570 25...

output:

39318 39319 39317 39316 39319 39317 39317 39317 39316 39317 39319 39318 39318 39319 39318 39318 39318 39317 39319 39318 39317 39319 39318 39319 39318 39319 39317 39316 39317 39318 39318 39318 39318 39319 39318 39317 39320 39318 39319 39319 39319 39318 39319 39318 39317 39319 39318 39319 39319 39317 ...

result:

ok single line: '39318 39319 39317 39316 39319 ... 39320 39319 39319 39318 39318 '

Test #55:

score: 0
Accepted
time: 41ms
memory: 9316kb

input:

68791
60686 67035 52274 20370 18661 59842 21594 42826 32652 64821 38065 2900 36213 48434 43625 25789 66150 50921 959 5949 37141 5701 2830 48588 4476 8284 61893 29908 33775 46799 28269 57149 27936 2780 20753 50820 10355 28410 50266 49352 11397 21276 38069 1774 50243 54763 20517 22242 963 2627 61127 2...

output:

68790 68789 68790 68790 68790 68787 68790 68789 68789 68790 68790 68789 68789 68789 68789 68790 68789 68790 68790 68791 68790 68789 68790 68790 68788 68790 68788 68789 68787 68789 68790 68788 68790 68790 68791 68789 68789 68790 68789 68789 68788 68789 68789 68788 68789 68790 68788 68788 68790 68790 ...

result:

ok single line: '68790 68789 68790 68790 68790 ... 68790 68787 68789 68786 68786 '

Test #56:

score: 0
Accepted
time: 38ms
memory: 8416kb

input:

99999
271 27437 7683 1644 40 67304 15 13 22 2 42136 812 13253 38255 120 59 3406 24488 9 35105 148 1 12181 1 5321 1 32 16 529 144 104 2 12 28 7118 9757 309 4610 4 659 17 3747 86297 31 11 12481 54723 40 86657 11 19 99877 639 3018 3 36 39 48118 16 709 719 21030 4638 219 11638 2 11051 1794 19 7 2 34540 ...

output:

99970 99997 99996 99993 99786 99998 99405 99386 99592 96491 99998 99989 99999 99997 99930 99840 99995 99998 99108 99997 99939 93904 99996 93904 99996 93904 99696 99480 99978 99938 99912 96491 99313 99687 99998 99998 99979 99997 98103 99986 99496 99995 99998 99742 99219 99997 99998 99786 99998 99219 ...

result:

ok single line: '99970 99997 99996 99993 99786 ... 99875 99956 99998 99995 96491 '

Test #57:

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

input:

3
113 16623 1

output:

3 2 2 

result:

ok single line: '3 2 2 '

Test #58:

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

input:

3
58 3243 3

output:

3 2 2 

result:

ok single line: '3 2 2 '

Test #59:

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

input:

34353
9 5550 1991 804 19945 3513 9 42 3552 11269 1 11 167 146 3838 1165 1 38200 5 531 31 44327 314 3 547 14950 20 60 21467 2187 6207 40 10269 16 1 8 57568 16 196 1 3201 8395 3987 195 686 15 7 90 3 1725 16 121 17 1101 18749 15153 14 41357 310 21008 15797 3 2 172 15403 15 184 355 37 38 446 8409 181 26...

output:

33992 34352 34351 34347 34352 34352 33992 34292 34351 34352 32269 34097 34328 34328 34351 34351 32269 34352 33794 34346 34260 34352 34348 33488 34351 34351 34207 34305 34352 34351 34351 34271 34352 34186 32269 33987 34352 34186 34333 32269 34352 34351 34352 34335 34349 34180 33944 34323 33488 34350 ...

result:

ok single line: '33992 34352 34351 34347 34352 ... 34349 34351 34346 34352 34227 '

Test #60:

score: 0
Accepted
time: 3ms
memory: 5508kb

input:

6691
50 55 62 74 66 60 64 53 59 71 51 50 70 59 73 57 71 68 49 52 57 70 55 73 74 48 72 60 49 56 60 70 58 73 65 51 47 71 73 69 47 53 52 49 74 70 55 64 62 66 52 74 67 61 61 47 62 61 72 55 71 48 72 65 66 58 49 57 47 50 54 60 63 49 69 59 50 62 53 59 68 72 66 57 53 58 63 64 51 63 71 67 52 54 58 66 69 52 4...

output:

6461 6453 6462 6436 6470 6423 6474 6456 6463 6437 6465 6461 6448 6463 6437 6460 6437 6436 6452 6446 6460 6448 6453 6437 6436 6467 6473 6423 6452 6476 6423 6448 6462 6437 6460 6465 6440 6437 6437 6442 6440 6456 6446 6452 6436 6448 6453 6474 6462 6470 6446 6436 6446 6434 6434 6440 6462 6434 6473 6453 ...

result:

ok single line: '6461 6453 6462 6436 6470 6423 ... 6453 6448 6437 6453 6423 6452 '

Test #61:

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

input:

76967
68 61 64 66 67 72 52 53 69 47 74 49 65 72 62 56 61 55 49 71 56 48 56 69 72 62 67 70 73 56 64 57 50 56 58 68 61 48 63 59 68 64 71 52 63 60 65 57 52 59 71 69 53 73 49 52 60 64 66 65 74 52 64 74 74 67 59 74 65 65 64 73 50 71 47 59 68 53 51 54 55 65 52 52 58 64 47 70 47 63 49 59 56 70 68 51 68 53 ...

output:

74140 74164 74301 74272 74202 74264 74144 74321 74167 74234 74230 74183 74151 74264 74183 74277 74164 74220 74183 74331 74277 74239 74277 74167 74264 74183 74202 74293 74147 74277 74301 74222 74143 74277 74197 74140 74164 74239 74174 74253 74140 74301 74331 74144 74174 74241 74151 74222 74144 74253 ...

result:

ok single line: '74140 74164 74301 74272 74202 ... 74183 74144 74230 74183 74277 '

Test #62:

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

input:

73705
55 74 65 59 53 54 67 69 51 51 54 53 52 59 57 55 69 58 67 71 54 61 52 48 59 62 71 69 69 64 66 68 55 55 51 50 72 73 60 55 62 63 57 59 71 48 68 52 63 54 62 47 60 53 62 65 68 74 70 64 71 48 47 66 47 58 73 74 71 67 67 51 49 66 48 65 51 58 65 73 73 70 59 62 61 64 48 71 64 49 74 70 72 71 56 58 52 51 ...

output:

70985 71053 71134 71088 71091 71120 71162 71052 70983 70983 71120 71091 71090 71088 71174 70985 71052 71077 71162 71065 71120 71093 71090 71132 71088 70999 71065 71052 71052 71093 71011 71063 70985 70985 70983 71038 71041 71060 71066 70985 70999 71141 71174 71088 71065 71132 71063 71090 71141 71120 ...

result:

ok single line: '70985 71053 71134 71088 71091 ... 71066 70985 71011 71088 71011 '

Test #63:

score: 0
Accepted
time: 51ms
memory: 10832kb

input:

99994
81318 13530 73475 56907 10084 12358 35797 65788 56393 72388 51322 30715 53766 62780 31982 24115 35380 54845 84466 81622 53637 1052 25951 8484 90462 99371 99755 36491 35921 24780 26986 37142 15133 22645 76529 60152 99513 64817 48969 14573 94699 43336 77833 28697 80180 34783 14388 49639 8053 839...

output:

99991 99992 99992 99993 99990 99993 99993 99993 99991 99992 99992 99993 99993 99991 99991 99992 99990 99993 99992 99993 99991 99993 99992 99993 99992 99991 99991 99991 99992 99992 99994 99992 99991 99993 99991 99993 99993 99992 99993 99991 99993 99991 99993 99993 99993 99990 99993 99990 99991 99993 ...

result:

ok single line: '99991 99992 99992 99993 99990 ... 99992 99992 99993 99992 99992 '

Test #64:

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

input:

3
3 2 3

output:

1 2 1 

result:

ok single line: '1 2 1 '

Test #65:

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

input:

96
28 40 49 75 40 19 22 61 79 65 33 28 93 90 70 62 18 26 69 76 23 47 39 54 50 90 53 77 61 28 33 62 13 46 61 65 79 38 26 73 93 77 94 38 6 69 60 8 79 89 79 84 30 53 74 24 36 79 35 56 50 1 7 65 70 12 77 52 54 52 85 3 96 28 36 83 54 18 47 52 11 87 81 21 42 17 62 62 28 38 55 69 74 95 87 95

output:

91 94 95 95 94 95 95 93 91 93 94 91 94 94 94 92 94 94 93 95 95 94 95 93 94 94 94 93 93 91 94 92 95 95 93 93 91 93 94 95 94 93 95 93 95 93 96 95 91 95 91 95 95 94 94 95 94 91 95 95 94 95 95 93 94 95 93 93 93 93 95 95 95 91 94 95 93 94 94 93 95 94 95 95 95 95 92 92 91 93 95 93 94 94 94 94 

result:

ok single line: '91 94 95 95 94 95 95 93 91 93 ... 92 92 91 93 95 93 94 94 94 94 '

Test #66:

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

input:

46796
90651 7 4429 411 4 13 2 304 2661 3049 229 5 48540 29607 23 27584 130 601 49 1 2447 1 4204 65603 6 4646 34776 27 277 1 10 68877 32830 21149 295 12 2283 6 214 35 44 46058 4 9 8 12834 4 54 7 70 1287 43 1 2 185 285 31043 155 31046 12107 552 351 49483 2518 2 568 5 260 42705 346 241 3 3169 93 4937 1...

output:

46795 46254 46794 46783 45876 46484 45100 46783 46795 46791 46773 46082 46795 46795 46618 46795 46762 46784 46708 44012 46793 44012 46795 46795 46157 46794 46795 46640 46782 44012 46373 46795 46795 46795 46785 46481 46795 46157 46770 46686 46703 46795 45876 46371 46312 46795 45876 46722 46254 46731 ...

result:

ok single line: '46795 46254 46794 46783 45876 ... 46755 45617 46792 46795 45876 '

Test #67:

score: 0
Accepted
time: 21ms
memory: 7060kb

input:

51559
1 2040 47729 225 15 73 1971 33446 52 1336 3383 1 652 14 38 258 1 55300 18 26 89 7660 5 65 12 7311 44249 21062 4862 148 53263 74 519 16067 10 20 84 9787 10966 4768 1478 19 1 1778 3 36 132 195 20 2 1 5838 760 1311 6 44 5616 5 32307 14602 2561 13 238 3754 22372 20 19 5926 4 562 19 633 11938 6 676...

output:

48423 51555 51558 51539 51270 51490 51557 51558 51464 51553 51556 48423 51554 51234 51456 51543 48423 51558 51305 51419 51509 51558 50694 51476 51186 51557 51558 51558 51556 51518 51557 51499 51553 51558 51116 51331 51520 51558 51558 51557 51557 51320 48423 51558 50229 51440 51522 51530 51331 49780 ...

result:

ok single line: '48423 51555 51558 51539 51270 ... 51556 51558 51558 51553 51556 '

Test #68:

score: 0
Accepted
time: 26ms
memory: 7628kb

input:

70010
962 55754 6549 17355 665 8008 519 51 621 63 3451 12870 16832 1331 434 2 644 14271 7 3 1 1 890 174 756 1153 1 4492 853 1199 53534 2 748 21745 71717 1 2 4069 10 36128 18 1 3206 480 32347 123 4116 2606 1264 15854 98404 6 538 725 63 87303 2763 1619 5 515 5424 13142 6 15155 2087 10 753 29 10 101 96...

output:

69998 70009 70008 70006 70002 70008 70002 69884 69996 69901 70009 70009 70009 70003 69984 67555 69996 70008 69219 68205 65708 65708 69998 69979 70006 70003 65708 70008 70002 70001 70009 67555 70002 70007 70008 65708 67555 70008 69419 70009 69687 65708 70008 69997 70009 69962 70009 70008 70003 70009 ...

result:

ok single line: '69998 70009 70008 70006 70002 ... 70008 65708 68734 65708 70009 '

Test #69:

score: 0
Accepted
time: 4ms
memory: 5732kb

input:

5405
68790 36 22966 2345 7 1 3 117 6 2328 9322 32747 93166 172 1069 136 15099 58170 13173 7479 45 55 17 936 316 14357 3 2931 12 4 17 70495 3 355 30020 1562 1577 17 156 1 174 2 120 55779 83572 3762 73011 324 4738 4668 8 2 13559 1 182 385 3764 1 3414 39590 2598 33 38627 236 1877 1013 7337 533 18233 7 ...

output:

5404 5395 5404 5404 5345 5061 5261 5396 5328 5404 5404 5404 5404 5400 5402 5401 5404 5404 5404 5404 5396 5397 5371 5404 5401 5404 5261 5404 5370 5292 5371 5404 5261 5404 5404 5404 5403 5371 5398 5061 5402 5207 5399 5404 5404 5404 5404 5403 5404 5404 5346 5207 5404 5061 5402 5404 5404 5061 5405 5404 ...

result:

ok single line: '5404 5395 5404 5404 5345 5061 ... 5400 5403 5397 5404 5261 5405 '

Test #70:

score: 0
Accepted
time: 23ms
memory: 6544kb

input:

99998
68 62 70 65 49 74 65 74 64 51 63 58 50 50 60 64 58 63 68 49 62 71 64 55 69 51 55 68 48 66 53 47 72 47 68 53 54 67 51 71 54 55 63 70 48 60 47 74 51 52 67 74 49 47 62 63 68 64 67 58 69 53 65 65 51 48 60 57 62 49 55 62 71 73 58 68 53 48 55 65 49 47 60 66 69 47 57 68 51 59 66 54 57 49 58 59 72 52 ...

output:

96512 96397 96318 96392 96401 96456 96392 96456 96317 96393 96447 96429 96548 96548 96419 96317 96429 96447 96512 96401 96397 96421 96317 96317 96540 96393 96317 96512 96371 96474 96323 96511 96485 96511 96512 96323 96371 96481 96393 96421 96371 96317 96447 96318 96371 96419 96511 96456 96393 96433 ...

result:

ok single line: '96512 96397 96318 96392 96401 ... 96448 96414 96317 96371 96323 '

Test #71:

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

input:

96
62 61 67 59 65 53 64 51 56 70 65 64 50 63 63 55 47 64 63 48 73 70 47 55 55 63 52 56 70 56 62 61 70 54 70 70 70 72 47 63 67 69 65 55 56 64 59 67 58 63 67 64 50 66 47 47 60 68 55 64 60 47 70 64 62 73 68 58 52 65 61 56 59 73 51 74 57 48 65 66 65 62 61 69 47 70 49 56 72 47 58 74 60 52 51 68

output:

92 92 92 93 90 95 89 93 90 87 90 89 94 90 90 91 88 89 90 94 93 87 88 91 91 90 93 90 87 90 92 92 87 95 87 87 87 94 88 90 92 94 90 91 90 89 93 92 93 90 92 89 94 94 88 88 93 93 91 89 93 88 87 89 92 93 93 93 93 90 92 90 93 93 93 94 96 94 90 94 90 92 92 94 88 87 95 90 94 88 93 94 93 93 93 93 

result:

ok single line: '92 92 92 93 90 95 89 93 90 87 ... 95 90 94 88 93 94 93 93 93 93 '

Test #72:

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

input:

34
48 64 57 69 61 70 58 49 64 65 73 71 66 63 69 52 72 51 72 71 69 56 51 69 64 66 47 53 70 49 47 48 47 51

output:

32 31 33 30 33 32 33 32 31 33 33 32 32 33 30 33 32 31 32 32 30 33 31 30 31 32 31 34 32 32 31 32 31 31 

result:

ok single line: '32 31 33 30 33 32 33 32 31 33 ... 31 32 31 34 32 32 31 32 31 31 '

Test #73:

score: 0
Accepted
time: 61ms
memory: 10836kb

input:

97088
51103 36610 86426 35107 66332 87487 53712 9504 87235 83603 67142 32081 29378 76678 94175 4875 44878 72000 34261 44511 77290 47778 18241 77133 54620 66574 35121 87311 81364 13468 68449 8470 30150 4838 45027 54457 5057 61700 9678 62604 69835 37065 1013 15491 35118 56879 22678 87594 69551 64955 5...

output:

97086 97086 97085 97086 97086 97086 97087 97087 97086 97085 97086 97087 97086 97087 97085 97087 97088 97085 97087 97086 97086 97086 97087 97086 97087 97087 97087 97087 97084 97087 97086 97086 97087 97086 97084 97086 97084 97083 97087 97087 97086 97087 97085 97086 97085 97087 97086 97086 97087 97087 ...

result:

ok single line: '97086 97086 97085 97086 97086 ... 97085 97087 97085 97084 97086 '

Test #74:

score: 0
Accepted
time: 31ms
memory: 8312kb

input:

53483
38627 53448 30836 48229 49052 22901 16469 16165 47752 25043 15682 10922 34653 27936 22623 29389 30897 13706 15793 43179 30262 46903 42186 29189 25925 52797 1817 23683 20560 32649 7482 52520 1085 19975 13813 9987 29847 5560 21741 53297 22077 1458 22176 13720 910 44735 35141 46633 20927 25499 23...

output:

53480 53481 53480 53481 53481 53480 53481 53480 53482 53480 53482 53480 53479 53481 53480 53482 53482 53482 53482 53479 53482 53480 53482 53482 53480 53482 53481 53480 53480 53481 53480 53481 53481 53481 53481 53482 53482 53481 53482 53480 53483 53482 53482 53481 53481 53481 53481 53479 53482 53481 ...

result:

ok single line: '53480 53481 53480 53481 53481 ... 53480 53483 53482 53481 53481 '

Test #75:

score: 0
Accepted
time: 11ms
memory: 7424kb

input:

33322
777 3437 21159 20076 1657 29987 25110 2862 24538 4981 513 11113 11566 17346 5446 25825 20722 19940 29194 2109 8150 13426 30401 9214 17256 25995 943 21683 29156 31856 6780 18397 30397 31767 20570 31951 9181 10864 6042 27537 24447 26267 11546 16 2466 16272 28746 28368 8470 28877 11604 10256 1518...

output:

33321 33321 33320 33320 33321 33319 33321 33321 33320 33320 33321 33319 33321 33320 33319 33320 33320 33321 33320 33321 33320 33319 33320 33318 33318 33321 33320 33320 33320 33320 33319 33321 33320 33320 33321 33321 33321 33320 33320 33320 33320 33321 33320 33320 33320 33320 33318 33320 33321 33319 ...

result:

ok single line: '33321 33321 33320 33320 33321 ... 33321 33322 33320 33320 33321 '

Extra Test:

score: 0
Extra Test Passed