QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#287003#7939. High Towersucup-team1682AC ✓266ms86440kbC++202.2kb2023-12-19 11:17:512023-12-19 11:17:52

詳細信息

Test #1:

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

input:

6
3 3 4 2 5 1

output:

5 2 6 3 7 4 

result:

ok 

Test #2:

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

input:

4
3 3 3 3

output:

5 4 3 2 

result:

ok 

Test #3:

score: 0
Accepted
time: 87ms
memory: 34180kb

input:

264668
5 5 5 5 9 5 5 5 7 3 5 3 11 9 9 9 8 9 8 9 12 4 4 9 5 5 6 4 12 4 7 5 6 5 18 12 6 12 11 11 11 11 11 11 12 19 5 5 8 6 6 6 26 7 7 7 8 6 7 6 6 12 10 6 9 8 8 8 10 4 22 4 4 6 3 6 4 4 8 5 5 5 7 3 8 6 6 6 6 8 3 5 3 6 4 4 8 5 5 5 10 6 6 6 6 17 4 12 5 11 6 10 7 9 8 8 16 5 5 5 8 4 4 12 8 7 7 8 6 9 4 14 5 ...

output:

264667 54881 54880 54879 264668 54884 54883 54882 264668 54885 264668 54886 264668 54893 54892 54891 54888 54889 54887 54890 264668 54895 54894 264668 54898 54896 54899 54897 264668 54903 54904 54901 54902 54900 264668 54914 54911 54912 54910 54909 54908 54907 54906 54905 54913 264668 54919 54915 54...

result:

ok 

Test #4:

score: 0
Accepted
time: 126ms
memory: 42488kb

input:

409115
2 4 3 7 4 5 4 7 3 6 4 4 7 4 4 6 3 11 6 6 6 9 6 6 6 11 3 10 8 5 8 7 7 7 10 3 5 3 8 6 6 6 6 8 3 8 6 6 6 6 10 5 5 5 8 4 4 8 4 5 4 7 3 5 3 6 4 4 8 5 5 5 9 4 5 4 8 4 4 7 4 4 8 5 5 5 8 4 4 7 4 4 6 3 9 4 7 6 6 6 9 3 6 4 4 28 7 7 7 12 8 8 9 7 12 7 7 12 8 8 9 7 9 24 7 7 7 8 4 34 8 8 8 8 8 10 5 5 13 4 ...

output:

409114 409115 101850 409115 101852 101853 101851 409115 101854 409115 101856 101855 409115 101858 101857 409115 101859 409115 101865 101861 101860 101866 101864 101863 101862 409115 101867 409115 101873 101871 101872 101870 101869 101868 409115 101874 409115 101875 409115 101879 101878 101877 101876...

result:

ok 

Test #5:

score: 0
Accepted
time: 133ms
memory: 43492kb

input:

430320
2 5 4 4 8 5 5 5 18 7 7 7 9 6 7 5 14 5 7 6 6 18 4 5 4 14 6 6 6 10 7 7 7 7 31 4 12 7 7 10 8 8 9 6 13 5 7 5 7 5 7 5 7 5 5 28 5 6 5 7 4 12 6 6 6 6 13 4 8 6 6 7 5 11 4 4 7 4 4 6 3 7 5 5 5 10 4 6 5 5 9 4 4 8 5 5 5 7 3 6 4 4 8 5 5 5 15 7 7 8 6 8 11 6 6 6 18 5 5 8 6 6 6 11 4 4 6 3 27 12 8 8 8 9 8 7 8...

output:

430319 430320 102640 102639 430320 102643 102642 102641 430320 102652 102645 102644 102653 102646 102653 102647 102654 102650 102651 102649 102648 430320 102656 102657 102655 430320 102664 102659 102658 102665 102663 102662 102661 102660 430320 102678 102679 102670 102666 102671 102668 102667 102671...

result:

ok 

Test #6:

score: 0
Accepted
time: 160ms
memory: 43884kb

input:

445524
4 4 6 4 4 32 6 6 6 10 7 7 7 21 7 10 9 9 9 11 10 9 9 9 11 7 7 20 5 6 5 45 8 11 10 10 10 11 13 7 7 14 7 6 6 19 5 6 5 35 6 6 6 11 8 7 8 7 9 9 7 7 7 8 5 19 3 5 3 17 5 7 6 6 15 6 6 11 6 9 8 8 8 64 6 6 7 5 12 8 8 8 8 12 7 7 7 11 6 7 6 10 6 6 10 7 7 7 17 13 13 13 13 11 13 12 12 13 19 6 9 7 8 7 15 9 ...

output:

445522 71253 445523 71255 71254 445524 71275 71257 71256 71276 71260 71259 71258 71276 71269 71270 71263 71262 71261 71271 71271 71266 71265 71264 71271 71268 71267 71276 71273 71274 71272 445524 71287 71288 71279 71278 71277 71289 71290 71281 71280 71291 71291 71283 71282 71292 71285 71286 71284 44...

result:

ok 

Test #7:

score: 0
Accepted
time: 172ms
memory: 45620kb

input:

481648
4 4 13 8 10 9 9 11 7 11 11 11 74 4 13 8 8 8 12 9 9 9 9 13 48 28 18 11 11 18 13 14 13 14 16 12 12 28 16 14 14 14 16 13 13 16 17 9 30 7 24 16 11 11 16 14 14 14 14 14 18 9 10 11 10 10 10 22 49 5 7 5 5 69 4 8 6 7 6 7 21 8 8 8 9 9 8 8 8 12 14 5 5 17 4 4 19 5 6 5 10 7 7 7 13 9 8 8 8 9 6 131 10 10 1...

output:

481646 76791 481647 76795 76796 76793 76792 76797 76794 76798 76799 76800 481648 76852 76853 76807 76802 76801 76808 76806 76805 76804 76803 76853 76853 76847 76829 76817 76809 76818 76813 76814 76810 76815 76816 76812 76811 76830 76827 76823 76820 76819 76824 76822 76821 76825 76828 76826 76848 768...

result:

ok 

Test #8:

score: 0
Accepted
time: 147ms
memory: 42320kb

input:

421202
5 5 7 5 5 10 4 5 4 43 5 16 13 10 10 13 11 11 11 13 15 7 7 34 11 9 9 11 9 9 12 6 14 6 13 6 11 7 10 9 9 9 71 8 8 8 8 13 8 8 9 7 12 7 7 13 8 9 8 10 7 16 10 9 10 9 10 10 31 6 6 12 9 9 9 9 9 10 4 68 7 7 7 8 13 6 12 7 11 8 10 9 9 31 6 9 8 8 8 12 7 7 10 7 7 10 7 7 7 36 4 6 5 5 34 5 6 5 29 9 9 9 9 9 ...

output:

421199 66049 421200 66051 66050 421201 66053 66054 66052 421202 66083 66084 66064 66059 66055 66060 66058 66057 66056 66061 66065 66063 66062 66085 66080 66069 66066 66070 66068 66067 66081 66071 66082 66072 66082 66078 66079 66076 66077 66075 66074 66073 421202 66114 66088 66087 66086 66115 66091 6...

result:

ok 

Test #9:

score: 0
Accepted
time: 159ms
memory: 46044kb

input:

480658
15 8 8 8 10 7 7 15 8 8 9 7 9 16 3 40 5 5 9 7 7 7 15 11 9 11 10 10 11 11 14 6 6 11 7 7 7 8 5 27 3 11 6 7 6 7 9 5 5 13 4 5 4 8 4 4 6 3 10 5 8 7 7 7 8 18 9 7 7 9 7 7 11 5 5 27 7 7 7 7 12 8 8 8 8 13 7 7 7 8 5 43 5 5 8 6 6 24 9 10 9 11 8 12 7 17 8 10 9 9 14 9 9 9 9 22 4 42 5 5 16 11 8 10 9 10 8 12...

output:

480656 80141 80133 80132 80142 80135 80134 80143 80138 80136 80139 80137 80140 480657 80144 480658 80163 80145 80164 80148 80147 80146 80164 80155 80151 80152 80150 80149 80153 80154 80164 80157 80156 80164 80161 80159 80158 80162 80160 480658 80165 480658 80169 80170 80166 80171 80172 80168 80167 4...

result:

ok 

Test #10:

score: 0
Accepted
time: 159ms
memory: 42732kb

input:

430417
5 5 5 27 7 7 7 11 8 7 8 7 24 8 8 12 8 10 9 9 16 8 9 8 9 16 34 4 5 4 8 5 5 5 430416 5 5 8 5 6 5 17 6 6 6 11 5 8 6 7 6 18 73 6 8 7 7 33 9 9 11 9 9 15 8 10 9 9 29 10 10 13 10 11 10 17 11 11 11 11 19 8 8 72 8 12 11 10 11 10 12 24 10 11 10 16 12 12 12 13 10 17 8 17 42 8 9 8 11 8 8 22 9 9 12 10 10 ...

output:

430415 17123 17122 430416 17143 17125 17124 17144 17129 17127 17128 17126 17145 17139 17130 17140 17133 17134 17132 17131 17141 17136 17137 17135 17138 17142 430417 17150 17151 17146 17152 17149 17148 17147 430418 430411 17153 430412 17155 17156 17154 430413 17164 17158 17157 17165 17162 17163 17160...

result:

ok 

Test #11:

score: 0
Accepted
time: 196ms
memory: 45524kb

input:

480452
5 9 8 8 8 8 9 13 5 6 5 6 22 9 7 9 8 8 9 9 10 3 480451 5 5 8 6 6 6 10 4 4 31 6 7 6 7 22 7 9 8 8 15 10 9 10 9 11 7 18 7 7 7 231 10 10 10 10 11 7 30 9 14 13 11 13 12 12 15 8 24 11 11 11 12 9 15 10 10 10 40 13 10 10 13 11 11 11 13 14 6 41 9 7 7 8 6 113 12 15 14 14 14 15 16 10 37 23 15 15 15 21 15...

output:

480448 480449 18036 18035 18034 18033 480450 480451 18038 18039 18037 18040 480452 18048 18043 18044 18042 18041 18045 18046 18049 18047 480453 480444 18050 480445 18053 18052 18051 480446 18055 18054 480447 18072 18073 18056 18074 18075 18068 18069 18058 18057 18070 18063 18060 18061 18059 18064 18...

result:

ok 

Test #12:

score: 0
Accepted
time: 183ms
memory: 43792kb

input:

448826
6 6 6 10 7 7 7 7 26 8 8 8 15 8 10 9 9 12 8 8 16 5 18 5 5 28 3 3 52 5 6 5 17 6 8 7 7 14 6 10 8 8 9 7 24 5 5 9 5 7 6 6 448797 3 18 17 6 9 7 8 7 17 7 12 9 10 9 11 8 12 125 12 10 10 11 9 12 8 16 9 9 9 9 18 6 6 68 9 12 11 11 11 13 8 36 11 18 15 15 15 15 17 13 13 19 10 20 9 29 16 13 13 13 13 16 12 ...

output:

448823 12166 12165 448824 12170 12169 12168 12167 448825 12183 12172 12171 12184 12177 12178 12174 12173 12179 12176 12175 12185 12180 12186 12182 12181 448826 12188 12187 448827 12208 12209 12189 12210 12198 12199 12191 12190 12200 12196 12197 12194 12192 12195 12193 12211 12206 12201 12207 12204 1...

result:

ok 

Test #13:

score: 0
Accepted
time: 153ms
memory: 45436kb

input:

466137
1 466136 5 5 5 5 6 6 4 5 4 10 6 6 6 6 12 7 7 7 7 7 10 4 4 8 5 5 5 9 5 5 5 12 6 6 6 8 5 5 16 5 5 9 7 7 7 7 13 5 5 5 11 7 6 6 7 5 11 5 5 5 10 4 6 5 5 14 9 9 9 9 8 9 8 12 4 4 9 5 5 6 4 18 4 5 6 5 11 9 9 9 9 9 9 16 4 4 12 9 6 6 9 7 7 7 11 3 7 4 5 4 7 3 20 6 6 6 18 6 7 6 9 6 12 8 8 8 10 7 7 22 5 5...

output:

466137 466138 466135 101460 101459 101458 466136 466136 101462 101463 101461 466136 101467 101466 101465 101464 466136 101472 101471 101470 101469 101468 466136 101474 101473 466136 101477 101476 101475 466136 101480 101479 101478 466136 101485 101482 101481 101486 101484 101483 466136 101492 101487...

result:

ok 

Test #14:

score: 0
Accepted
time: 138ms
memory: 44296kb

input:

447669
3 3 29 3 6 5 5 13 10 9 9 9 10 7 10 12 4 6 4 8 5 6 5 11 7 5 7 6 6 447668 3 6 4 5 4 11 6 6 6 6 7 5 4 4 9 4 6 5 5 11 5 5 6 4 21 4 5 9 7 7 8 6 13 7 8 7 8 9 4 46 4 9 6 7 7 6 11 6 6 9 6 6 14 6 11 8 10 9 9 10 18 6 9 8 8 9 6 11 4 40 5 5 6 5 6 5 6 4 21 4 12 7 7 7 11 8 8 8 8 19 4 8 7 7 7 7 19 4 12 5 11...

output:

447668 91748 447669 91768 91769 91750 91749 91769 91757 91754 91752 91751 91755 91753 91756 91769 91758 91769 91759 91769 91761 91762 91760 91769 91767 91765 91766 91764 91763 447670 447665 447666 91771 91772 91770 447667 91776 91775 91774 91773 447667 447667 91778 91777 447667 91781 91782 91780 917...

result:

ok 

Test #15:

score: 0
Accepted
time: 138ms
memory: 42132kb

input:

408826
1 408825 3 4 3 7 4 4 26 18 12 9 9 12 9 10 9 17 10 10 10 10 11 6 23 6 6 8 6 6 25 3 9 5 6 5 7 4 10 4 4 13 4 9 8 8 8 8 9 4 20 6 6 6 9 6 6 8 5 5 21 5 5 11 9 9 9 9 9 9 26 4 9 8 8 8 8 15 7 7 7 10 7 7 7 28 11 11 8 8 11 8 9 8 13 5 5 19 5 5 7 5 5 10 4 4 22 5 8 7 7 7 12 7 7 7 13 9 9 9 9 9 10 4 21 3 11 ...

output:

408826 408827 408823 408824 69839 408825 69841 69840 408825 69860 69853 69846 69842 69847 69844 69845 69843 69854 69851 69850 69849 69848 69854 69852 69861 69858 69855 69859 69857 69856 408825 69862 408825 69865 69866 69863 69867 69864 408825 69869 69868 408825 69875 69876 69873 69872 69871 69870 69...

result:

ok 

Test #16:

score: 0
Accepted
time: 172ms
memory: 46372kb

input:

486362
2 8 5 5 5 7 4 4 10 2 3 486351 5 5 5 6 14 9 7 7 9 7 7 13 5 6 6 5 27 11 6 7 6 9 6 8 6 6 15 4 5 4 6 5 4 4 15 5 5 6 6 5 9 6 7 6 7 25 6 6 8 6 6 13 8 8 8 8 9 4 49 27 9 27 10 14 12 13 12 16 12 12 14 11 18 11 12 12 13 12 13 11 27 27 28 8 7 7 7 36 7 7 7 8 5 54 4 19 7 7 7 8 11 10 8 9 9 8 14 6 7 7 6 23 ...

output:

486361 486362 117253 117250 117249 117254 117252 117251 486363 117255 486363 486363 486358 117257 117256 486359 486359 117266 117261 117258 117262 117260 117259 117267 117264 117265 117265 117263 486360 117275 117272 117273 117268 117274 117269 117274 117271 117270 486360 117277 117278 117276 486360...

result:

ok 

Test #17:

score: 0
Accepted
time: 142ms
memory: 44384kb

input:

444506
1 444505 2 3 22 4 10 9 7 8 8 7 15 7 7 9 7 7 14 6 7 7 6 8 23 3 6 4 4 13 10 10 10 10 10 10 10 10 16 7 5 7 6 6 10 4 4 10 7 7 7 7 7 9 3 8 6 6 6 6 10 4 5 4 7 3 7 5 5 5 9 5 5 5 7 3 6 4 4 6 3 5 3 8 6 6 6 6 8 3 5 3 5 3 8 6 6 6 6 8 3 5 3 6 4 4 8 5 5 5 13 9 9 9 9 9 9 9 12 4 4 10 7 5 7 6 6 9 3 6 4 4 9 6...

output:

444506 444507 444504 444505 444505 107283 107284 107273 107271 107272 107272 107270 107284 107277 107274 107278 107276 107275 107284 107280 107281 107281 107279 107282 444505 107285 444505 107287 107286 444505 107295 107294 107293 107292 107291 107290 107289 107288 444505 107300 107298 107299 107297...

result:

ok 

Test #18:

score: 0
Accepted
time: 122ms
memory: 42776kb

input:

416777
1 416776 4 4 4 8 4 5 4 7 3 7 5 5 5 11 7 7 7 7 7 10 4 4 8 5 5 5 9 4 5 4 9 5 5 5 11 6 6 6 7 4 10 4 4 10 7 7 7 7 7 11 5 5 5 8 4 4 8 5 5 5 11 5 5 7 5 5 11 5 5 5 8 4 4 7 4 4 7 4 4 8 5 5 5 8 4 4 7 4 4 8 5 5 5 10 6 6 6 6 13 8 8 8 7 8 7 11 4 4 6 3 6 4 4 7 4 4 9 6 6 6 6 12 7 5 7 6 6 10 4 4 6 3 5 3 6 4...

output:

416777 416778 416775 104627 104626 416776 104629 104630 104628 416776 104631 416776 104634 104633 104632 416776 104639 104638 104637 104636 104635 416776 104641 104640 416776 104644 104643 104642 416776 104646 104647 104645 416776 104650 104649 104648 416776 104654 104652 104651 104655 104653 416776...

result:

ok 

Test #19:

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

input:

15
7 7 7 7 9 5 5 11 4 4 13 3 4 2 14

output:

12 5 4 3 13 7 6 14 9 8 15 10 15 11 16 

result:

ok 

Test #20:

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

input:

17
7 7 7 7 9 5 5 11 4 4 13 3 5 3 4 2 16

output:

14 6 5 4 15 8 7 16 10 9 17 11 17 12 17 13 18 

result:

ok 

Test #21:

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

input:

15
9 8 8 9 7 10 5 12 5 5 13 3 13 14 1

output:

11 4 2 5 3 12 6 13 8 7 14 9 15 16 10 

result:

ok 

Test #22:

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

input:

15
2 6 5 5 5 8 4 4 4 11 2 5 3 3 3

output:

14 15 6 5 4 15 9 8 7 16 10 16 13 12 11 

result:

ok 

Test #23:

score: 0
Accepted
time: 248ms
memory: 83904kb

input:

500000
499996 499995 499994 499993 499992 499991 499990 499989 499988 499987 499986 499985 499984 499983 499982 499981 499980 499979 499978 499977 499976 499975 499974 499973 499972 499971 499970 499969 499968 499967 499966 499965 499964 499963 499962 499961 499960 499959 499958 499957 499956 499955...

output:

500000 499995 499992 499989 499986 499983 499980 499977 499974 499971 499968 499965 499962 499959 499956 499953 499950 499947 499944 499941 499938 499935 499932 499929 499926 499923 499920 499917 499914 499911 499908 499905 499902 499899 499896 499893 499890 499887 499884 499881 499878 499875 499872...

result:

ok 

Test #24:

score: 0
Accepted
time: 266ms
memory: 86440kb

input:

500000
2 3 2 499999 3 499996 5 499995 7 499994 9 499993 11 499992 13 499991 15 499990 17 499989 19 499988 21 499987 23 499986 25 499985 27 499984 29 499983 31 499982 33 499981 35 499980 37 499979 39 499978 41 499977 43 499976 45 499975 47 499974 49 499973 51 499972 53 499971 55 499970 57 499969 59 4...

output:

499999 500000 2 500001 499996 499997 499993 499994 499990 499991 499987 499988 499984 499985 499981 499982 499978 499979 499975 499976 499972 499973 499969 499970 499966 499967 499963 499964 499960 499961 499957 499958 499954 499955 499951 499952 499948 499949 499945 499946 499942 499943 499939 4999...

result:

ok 

Test #25:

score: 0
Accepted
time: 253ms
memory: 61892kb

input:

500000
250000 250000 250001 249999 250002 249998 250003 249997 250004 249996 250005 249995 250006 249994 250007 249993 250008 249992 250009 249991 250010 249990 250011 249989 250012 249988 250013 249987 250014 249986 250015 249985 250016 249984 250017 249983 250018 249982 250019 249981 250020 249980...

output:

250002 2 250003 3 250004 4 250005 5 250006 6 250007 7 250008 8 250009 9 250010 10 250011 11 250012 12 250013 13 250014 14 250015 15 250016 16 250017 17 250018 18 250019 19 250020 20 250021 21 250022 22 250023 23 250024 24 250025 25 250026 26 250027 27 250028 28 250029 29 250030 30 250031 31 250032 3...

result:

ok 

Test #26:

score: 0
Accepted
time: 225ms
memory: 61908kb

input:

500000
249759 249759 249760 249758 249761 249757 249762 249756 249763 249755 249764 249754 249765 249753 249766 249752 249767 249751 249768 249750 249769 249749 249770 249748 249771 249747 249772 249746 249773 249745 249774 249744 249775 249743 249776 249742 249777 249741 249778 249740 249779 249739...

output:

250243 243 250244 244 250245 245 250246 246 250247 247 250248 248 250249 249 250250 250 250251 251 250252 252 250253 253 250254 254 250255 255 250256 256 250257 257 250258 258 250259 259 250260 260 250261 261 250262 262 250263 263 250264 264 250265 265 250266 266 250267 267 250268 268 250269 269 250...

result:

ok 

Extra Test:

score: 0
Extra Test Passed