QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#798457#9790. Make Swamp Great AgainZhangYiDeWA 72ms15736kbC++23799b2024-12-04 13:53:572024-12-04 13:54:06

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3644kb

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: 3584kb

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: 22ms
memory: 8692kb

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 ...0 34280 34281 34281 34281 34281'

Test #4:

score: 0
Accepted
time: 68ms
memory: 14744kb

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 ...8 92269 92271 92270 92270 92270'

Test #5:

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

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 ...8 25147 25149 25148 25146 25148'

Test #6:

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

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 ...2 1385 1437 1432 1437 1437 1437'

Test #7:

score: 0
Accepted
time: 44ms
memory: 9684kb

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 ...3 99661 99997 99955 99995 99952'

Test #8:

score: 0
Accepted
time: 8ms
memory: 5204kb

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 ...1 17276 17456 17460 17461 16418'

Test #9:

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

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: 8ms
memory: 5428kb

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 ...2 86516 86481 86552 86552 86435'

Test #11:

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

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 ...8 62412 62415 62478 62412 62503'

Test #12:

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

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 ...8 3457 3463 3459 3452 3460 3450'

Test #13:

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

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 ...8 95996 95996 95997 95998 95993'

Test #14:

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

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 ...6 99997 99998 99998 99998 99998'

Test #15:

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

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 ...6 55744 55746 55747 55747 55746'

Test #16:

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

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 ...9 68276 68278 67659 68256 68278'

Test #17:

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

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 ...0 23011 23005 23014 22996 22871'

Test #18:

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

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 ...1 79870 75251 79919 79919 79916'

Test #19:

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

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 ...1 83855 79261 84203 82896 84043'

Test #20:

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

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...985 985 993 993 995 990 997 993'

Test #21:

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

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 ...1 96363 96447 96455 96485 96349'

Test #22:

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

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 ...1 3782 3782 3776 3788 3767 3801'

Test #23:

score: -100
Wrong Answer
time: 1ms
memory: 3760kb

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:

788 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:

wrong answer 1st lines differ - expected: '787 787 787 787 787 788 787 78...787 787 787 787 787 787 787 787', found: '788 787 787 787 787 788 787 78...787 787 787 787 787 787 787 787'