QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#152095 | #4995. Highest Hill | HuangHanSheng | AC ✓ | 17ms | 4656kb | C++20 | 719b | 2023-08-27 16:41:37 | 2023-08-27 16:41:38 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3420kb
input:
11 0 1 2 3 4 5 4 3 2 1 0
output:
5
result:
ok single line: '5'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
10 29 85 88 12 52 37 19 86 7 44
output:
67
result:
ok single line: '67'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3412kb
input:
3 2147483647 318000000000 2147483647
output:
315852516353
result:
ok single line: '315852516353'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
3 1 1 1
output:
0
result:
ok single line: '0'
Test #5:
score: 0
Accepted
time: 1ms
memory: 3392kb
input:
7 7 5 7 6 7 6 6
output:
1
result:
ok single line: '1'
Test #6:
score: 0
Accepted
time: 1ms
memory: 3408kb
input:
7 8 8 9 8 1 5 8
output:
1
result:
ok single line: '1'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
7 4 10 8 9 6 6 4
output:
2
result:
ok single line: '2'
Test #8:
score: 0
Accepted
time: 8ms
memory: 4552kb
input:
200000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
0
result:
ok single line: '0'
Test #9:
score: 0
Accepted
time: 16ms
memory: 4556kb
input:
200000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 318000000000 3180000...
output:
0
result:
ok single line: '0'
Test #10:
score: 0
Accepted
time: 17ms
memory: 4616kb
input:
200000 159000000000 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 1590000...
output:
2
result:
ok single line: '2'
Test #11:
score: 0
Accepted
time: 16ms
memory: 4532kb
input:
199997 159000000000 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 159000000001 1590000...
output:
2
result:
ok single line: '2'
Test #12:
score: 0
Accepted
time: 11ms
memory: 4636kb
input:
200000 317999800001 317999800002 317999800003 317999800004 317999800005 317999800006 317999800007 317999800008 317999800009 317999800010 317999800011 317999800012 317999800013 317999800014 317999800015 317999800016 317999800017 317999800018 317999800019 317999800020 317999800021 317999800022 3179998...
output:
0
result:
ok single line: '0'
Test #13:
score: 0
Accepted
time: 8ms
memory: 4544kb
input:
200000 317999999999 317999999999 317999999998 317999999997 317999999996 317999999995 317999999994 317999999993 317999999992 317999999991 317999999990 317999999989 317999999988 317999999987 317999999986 317999999985 317999999984 317999999983 317999999982 317999999981 317999999980 317999999979 3179999...
output:
0
result:
ok single line: '0'
Test #14:
score: 0
Accepted
time: 11ms
memory: 4568kb
input:
200000 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 3179999...
output:
2
result:
ok single line: '2'
Test #15:
score: 0
Accepted
time: 16ms
memory: 4536kb
input:
200000 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 3179999...
output:
2
result:
ok single line: '2'
Test #16:
score: 0
Accepted
time: 16ms
memory: 4544kb
input:
200000 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 3179999...
output:
2
result:
ok single line: '2'
Test #17:
score: 0
Accepted
time: 6ms
memory: 4616kb
input:
200000 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999999 317999999998 317999999998 317999999998 317999999998 3179999...
output:
2
result:
ok single line: '2'
Test #18:
score: 0
Accepted
time: 13ms
memory: 4616kb
input:
200000 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 317999999998 3179999...
output:
2
result:
ok single line: '2'
Test #19:
score: 0
Accepted
time: 15ms
memory: 4548kb
input:
200000 318000000000 318000000000 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 3179999...
output:
1
result:
ok single line: '1'
Test #20:
score: 0
Accepted
time: 16ms
memory: 4548kb
input:
200000 318000000000 318000000000 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 3179999...
output:
1
result:
ok single line: '1'
Test #21:
score: 0
Accepted
time: 11ms
memory: 4492kb
input:
200000 318000000000 318000000000 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 3179999...
output:
1
result:
ok single line: '1'
Test #22:
score: 0
Accepted
time: 12ms
memory: 4604kb
input:
200000 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 3179999...
output:
1
result:
ok single line: '1'
Test #23:
score: 0
Accepted
time: 8ms
memory: 4624kb
input:
200000 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 3179999...
output:
1
result:
ok single line: '1'
Test #24:
score: 0
Accepted
time: 11ms
memory: 4620kb
input:
200000 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 3179999...
output:
1
result:
ok single line: '1'
Test #25:
score: 0
Accepted
time: 13ms
memory: 4656kb
input:
200000 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 317999999999 318000000000 317999999999 3179999...
output:
1
result:
ok single line: '1'
Test #26:
score: 0
Accepted
time: 10ms
memory: 4548kb
input:
200000 317999999999 318000000000 317999999997 317999999998 317999999995 317999999996 317999999993 317999999994 317999999991 317999999992 317999999989 317999999990 317999999987 317999999988 317999999985 317999999986 317999999983 317999999984 317999999981 317999999982 317999999979 317999999980 3179999...
output:
1
result:
ok single line: '1'
Test #27:
score: 0
Accepted
time: 17ms
memory: 4624kb
input:
200000 92501278627 243854404028 27636893763 48543925106 10333657677 17423911368 6761944157 102997050763 4567158126 5132462962 2026442422 77011832683 58252721928 117468363505 56751732624 239526602923 145288580749 257247422789 1453096506 1502572350 699924477 290359066828 1782090208 5943250248 48528488...
output:
317127684838
result:
ok single line: '317127684838'
Test #28:
score: 0
Accepted
time: 8ms
memory: 4552kb
input:
200000 227626583633 227789773101 79228029674 144347190746 43149319470 96381756712 31838807142 198513247949 45768894781 65349848249 4553507068 34612613304 7110520496 313869225392 200788952062 209668067573 184416757589 313102377318 109497240582 257389082799 58717649374 137688831276 4029065621 22194150...
output:
315237454590
result:
ok single line: '315237454590'
Test #29:
score: 0
Accepted
time: 9ms
memory: 4620kb
input:
200000 12295077686 12295088046 12295428417 12295555465 12296224378 12296485643 12297308983 12297553577 12298724948 12298777741 12300580031 12300700423 12301631796 12302721995 12303356051 12303528067 12303698477 12304665063 12304701551 12305303362 12306428013 12309180063 12309242037 12309278787 12310...
output:
34266183939
result:
ok single line: '34266183939'
Test #30:
score: 0
Accepted
time: 16ms
memory: 4552kb
input:
200000 18798253536 18800693113 18801169602 18802426084 18802670198 18806060145 18807155178 18807584644 18808836313 18809573396 18809747678 18813356604 18815381678 18815912524 18818560047 18818594600 18819564150 18819603801 18820138024 18822366721 18827411241 18828675396 18843302840 18843472565 18851...
output:
85754908751
result:
ok single line: '85754908751'
Test #31:
score: 0
Accepted
time: 12ms
memory: 4552kb
input:
200000 51546656872 51546713560 51546715095 51546731645 51546747210 51546781039 51546862302 51546947336 51546998501 51546998951 51547013759 51547019072 51547095704 51547107047 51547118626 51547145790 51547196732 51547226403 51547261313 51547272645 51547329755 51547393710 51547464272 51547537979 51547...
output:
18729880199
result:
ok single line: '18729880199'
Test #32:
score: 0
Accepted
time: 9ms
memory: 4544kb
input:
200000 295541895172 240080048493 309042748632 13026225078 52941634517 46031726698 217496405645 194540873815 126274789070 94616839654 56707591405 33835043131 139967662394 178732967557 57019871152 269200238179 143963674550 80332106503 241077636907 62327596375 308205859685 69254925164 131295431763 2543...
output:
313565901353
result:
ok single line: '313565901353'
Test #33:
score: 0
Accepted
time: 7ms
memory: 4624kb
input:
200000 243158619798 195091016926 235183479920 288506583446 43184742085 312339208970 179050902807 233721569077 104196262579 250169525278 63444680251 159970715587 270816272017 83280991073 231487503292 3194312663 251638713608 19930192512 116834878468 19954654704 260114911964 116924273504 117759605541 2...
output:
313551018592
result:
ok single line: '313551018592'
Test #34:
score: 0
Accepted
time: 10ms
memory: 4544kb
input:
200000 223909763892 144851155602 300074335941 11530199477 54201674003 143456410032 46997533274 177017974245 150166180067 120944437452 176844549767 239216342375 220017657510 251630687873 300878476289 13039087228 286305741511 188174741945 2279162236 218624023075 36365631575 14057290247 289051887822 15...
output:
314657440652
result:
ok single line: '314657440652'
Test #35:
score: 0
Accepted
time: 9ms
memory: 4604kb
input:
200000 68 11 79 11 22 42 37 34 48 32 43 30 69 46 69 11 15 9 85 71 13 100 68 28 23 38 59 87 27 76 20 58 82 25 88 91 11 14 75 72 22 14 24 84 25 41 41 61 41 40 7 52 90 70 64 82 74 13 84 98 51 3 61 56 13 19 26 46 8 37 22 34 91 90 37 14 49 73 66 55 45 48 16 77 69 51 66 73 90 84 53 16 95 26 22 14 38 22 38...
output:
100
result:
ok single line: '100'
Test #36:
score: 0
Accepted
time: 9ms
memory: 4656kb
input:
200000 87 27 85 78 1 35 89 56 61 25 22 1 72 50 7 35 56 90 10 59 49 52 47 28 17 18 49 99 100 7 1 72 52 2 53 96 82 39 79 17 35 21 48 9 4 72 64 91 90 89 74 58 79 88 54 62 33 100 14 5 61 73 15 84 32 99 43 52 97 92 30 85 24 100 89 60 16 65 72 94 73 10 25 11 88 43 42 78 10 97 54 85 54 2 0 67 19 4 14 57 93...
output:
99
result:
ok single line: '99'
Test #37:
score: 0
Accepted
time: 10ms
memory: 4616kb
input:
200000 889 936 666 328 313 514 242 866 708 958 229 877 42 658 393 108 413 142 706 672 285 75 907 297 668 485 591 354 143 173 805 323 593 290 813 23 336 136 323 998 896 345 605 144 678 208 933 303 338 872 297 653 329 676 117 196 188 945 848 189 420 756 243 303 75 293 970 816 692 325 396 450 642 105 3...
output:
988
result:
ok single line: '988'
Test #38:
score: 0
Accepted
time: 15ms
memory: 4532kb
input:
200000 44961445385 44964543890 44966854356 44968366738 44969518099 44974225430 44976858156 44977233769 44978103955 44979767626 44982349898 44984184612 44986533629 45000230047 45001706207 45002385191 45002649298 45005359279 45007202915 45007312898 45007431301 45009127484 45009868886 45010329376 45012...
output:
222631683476
result:
ok single line: '222631683476'
Test #39:
score: 0
Accepted
time: 9ms
memory: 4552kb
input:
200000 2578904397 2578913838 2578930326 2578940589 2579097023 2579121850 2579137135 2579141296 2579179450 2579202065 2579235581 2579278911 2579312137 2579355166 2579372967 2579414212 2579414443 2579424587 2579515924 2579578808 2579593760 2579618374 2579620932 2579661545 2579686508 2579779732 2579782...
output:
259437438806
result:
ok single line: '259437438806'
Test #40:
score: 0
Accepted
time: 6ms
memory: 4556kb
input:
200000 197887117012 197891916998 197906145859 197916314255 197929474332 197946962251 197979829306 198080109892 198099095829 198112529971 198120877889 198123173755 198124488622 198144024167 198152132815 198175709795 198182739025 198228279431 198245070991 198250286858 198306860114 198446245652 1984519...
output:
309956016992
result:
ok single line: '309956016992'
Test #41:
score: 0
Accepted
time: 12ms
memory: 4604kb
input:
200000 38880350989 39140197938 46791845120 51943413176 53346609976 78000935329 78449253457 86066780935 92237493039 93618283422 95656752080 99980451228 108053155878 109325025684 112463195739 113861910408 121204754019 73235896854 73463694379 73467590201 73511210894 73581467955 73839857922 74050627142 ...
output:
307980203411
result:
ok single line: '307980203411'
Test #42:
score: 0
Accepted
time: 14ms
memory: 4560kb
input:
200000 21637110245 21752447426 21789757838 21851537535 22566660472 22722921919 22785172389 22963111240 23054992566 23202712572 23537450294 23794881029 24970157634 25057157627 25210878182 25446720853 25625385458 25796311033 26185605462 26285625669 26411332575 26428586092 27120431910 27570472846 27989...
output:
312096773762
result:
ok single line: '312096773762'