QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#390354#2632. Ascending Photolmq26052003 AC ✓66ms27288kbC++171.6kb2024-04-15 13:01:542024-04-15 13:01:55

詳細信息

Test #1:

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

input:

1
160

output:

0

result:

ok single line: '0'

Test #2:

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

input:

59
244 223 106 152 194 94 94 196 85 128 183 151 218 155 95 239 132 116 113 139 153 198 137 190 140 141 219 129 87 179 185 168 70 194 133 98 232 205 125 172 229 183 82 117 197 194 136 101 154 112 211 149 211 114 105 182 232 181 102

output:

56

result:

ok single line: '56'

Test #3:

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

input:

4
100 110 120 110

output:

2

result:

ok single line: '2'

Test #4:

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

input:

4
70 71 70 71

output:

2

result:

ok single line: '2'

Test #5:

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

input:

6
100 120 130 140 120 130

output:

2

result:

ok single line: '2'

Test #6:

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

input:

5
100 150 100 100 150

output:

2

result:

ok single line: '2'

Test #7:

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

input:

8
100 101 102 103 104 101 102 103

output:

4

result:

ok single line: '4'

Test #8:

score: 0
Accepted
time: 50ms
memory: 5384kb

input:

489684
156 236 133 135 145 122 247 152 150 96 149 213 79 181 163 159 167 173 167 223 118 165 120 151 178 219 190 238 82 184 244 79 79 225 137 91 188 126 204 173 211 232 244 169 166 153 148 171 94 80 228 232 135 142 145 218 243 168 104 127 144 132 119 184 148 186 224 83 153 208 105 220 143 162 188 11...

output:

486719

result:

ok single line: '486719'

Test #9:

score: 0
Accepted
time: 45ms
memory: 11468kb

input:

748564
71 73 70 71 71 72 72 74 71 72 71 74 74 71 73 70 70 71 73 74 72 71 72 74 73 72 70 72 70 70 73 70 71 70 72 70 74 72 72 70 70 70 70 72 72 71 72 73 71 70 73 70 70 74 70 70 73 72 73 70 71 70 72 71 70 70 72 74 72 71 74 71 74 73 74 72 70 73 71 74 71 73 71 73 72 70 71 70 72 71 70 72 73 73 72 70 70 73...

output:

599031

result:

ok single line: '599031'

Test #10:

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

input:

7
100 110 120 100 110 120 130

output:

3

result:

ok single line: '3'

Test #11:

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

input:

15
101 102 103 104 101 102 103 104 105 101 102 103 104 105 106

output:

9

result:

ok single line: '9'

Test #12:

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

input:

11
3 6 12 7 7 7 7 8 10 5 5

output:

4

result:

ok single line: '4'

Test #13:

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

input:

1000
160 159 158 157 156 157 156 157 158 159 158 157 158 159 160 159 158 157 158 157 158 157 156 157 158 159 160 161 162 161 160 161 162 161 160 159 158 159 160 161 160 159 160 161 160 159 160 161 160 161 160 161 160 159 158 157 158 157 156 155 156 155 154 153 152 151 152 151 150 151 152 151 150 149...

output:

956

result:

ok single line: '956'

Test #14:

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

input:

1000
160 159 160 161 162 161 162 161 162 161 162 161 160 159 160 161 160 159 158 157 158 157 158 159 158 159 160 159 158 159 160 159 158 157 156 155 154 153 154 153 152 153 154 155 156 157 158 157 156 157 156 157 158 157 158 159 160 161 162 161 162 161 162 163 162 161 162 161 162 161 162 161 162 161...

output:

936

result:

ok single line: '936'

Test #15:

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

input:

500
160 161 160 161 160 161 160 159 158 157 158 157 158 159 160 159 160 161 160 159 158 157 156 157 158 159 160 161 162 161 162 161 162 161 160 161 160 159 160 161 160 161 162 161 160 161 160 159 160 159 160 161 160 159 160 159 158 157 158 157 158 159 160 161 162 163 164 163 162 163 164 163 162 161 ...

output:

474

result:

ok single line: '474'

Test #16:

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

input:

250
160 159 160 161 162 163 162 161 160 161 162 163 164 165 166 165 166 167 168 169 168 169 170 171 170 171 170 171 172 171 172 173 174 175 174 173 174 173 174 175 174 175 174 173 174 175 176 175 176 175 176 177 176 175 174 173 174 173 174 173 172 173 172 173 172 171 170 169 168 167 166 165 166 165 ...

output:

228

result:

ok single line: '228'

Test #17:

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

input:

100000
8450 13526 26490 53847 57907 58296 58654 66007 77353 96267 98243 115757 128188 128305 148403 160349 165162 165911 171280 180316 187116 187399 187879 196049 204430 217405 218193 225678 229386 239366 252417 270669 275782 276540 307695 321599 329491 344739 353450 356744 361374 373846 376135 3912...

output:

0

result:

ok single line: '0'

Test #18:

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

input:

100000
999998741 999998124 999974287 999970992 999965171 999962049 999957054 999952439 999940793 999903011 999901494 999896602 999894482 999870809 999867856 999860682 999858404 999857432 999855541 999851863 999842200 999823881 999823636 999808274 999805703 999804326 999793821 999775262 999773705 999...

output:

99999

result:

ok single line: '99999'

Test #19:

score: 0
Accepted
time: 66ms
memory: 17872kb

input:

100000
99733586 648134065 682695199 793470390 746212435 156205614 556370183 442282778 385969086 689989565 24395695 53947831 271024554 365899358 597287430 741926125 181765741 712862643 764630883 951459131 248417005 707993323 994817783 495160185 231167466 418488917 317902880 442955960 262559372 512343...

output:

99997

result:

ok single line: '99997'

Test #20:

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

input:

101505
971418844 971452936 971464411 971482916 971523779 971533551 971570735 971589540 971600695 971606590 971693964 971755196 971758787 971782213 971796372 971802414 971805978 971806701 971809996 971892850 971908252 971911134 971940035 972079188 972127843 972143818 972154713 972183753 972188848 972...

output:

67734

result:

ok single line: '67734'

Test #21:

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

input:

100800
457856682 462479969 464843143 458367454 452366833 454419577 452255095 461951151 453934200 462233221 455329846 462417692 451895738 460622607 449679198 460176267 449684234 451483686 450988409 457733771 456745883 464752581 461948714 457919072 456110338 458134559 451686614 454133853 453248020 449...

output:

100617

result:

ok single line: '100617'

Test #22:

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

input:

3
5000000 5500000 7000000

output:

0

result:

ok single line: '0'

Test #23:

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

input:

100097
1031333 10931954 11369685 13985100 10320527 1779001 8771752 827612 1259591 6327011 8535681 13558257 3213452 601628 13083752 14327681 10747683 11207052 9580327 4312167 8621657 11521135 8830129 1325562 12129018 3632484 4771512 8685294 9105307 11545042 4162857 2217374 1073130 2017212 7204624 535...

output:

99924

result:

ok single line: '99924'

Test #24:

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

input:

99898
150221053 150244659 154888793 150296933 150297727 150370109 150377226 150395810 150404195 157866117 150446467 150460224 159141576 160342868 161754849 150581221 159764481 150602669 159133681 150621973 150632842 150657087 150794870 154694667 150856782 150902394 150979540 151000379 151619035 1517...

output:

69831

result:

ok single line: '69831'

Test #25:

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

input:

99301
1787 56153 2265814 59903 87357 92056 98837 109174 130986 2346292 562965 185523 250886 12183260 295047 307112 312537 317392 325324 359486 9716391 423210 430193 435395 461833 500594 556145 147604 565964 587719 700517 674837 667523 11921559 8687836 814164 13062859 878593 913193 10090604 995108 99...

output:

69180

result:

ok single line: '69180'

Test #26:

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

input:

12
1 2 2 3 3 1 2 3 4 1 2 3

output:

6

result:

ok single line: '6'