QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#113067#3879. Down the Pyramidlmq26052003WA 76ms11500kbC++20934b2023-06-16 09:32:332023-06-16 09:32:34

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 5632kb

input:

6
12 5 7 7 8 4

output:

2

result:

ok single line: '2'

Test #2:

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

input:

3
10 1000 100

output:

0

result:

ok single line: '0'

Test #3:

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

input:

1
0

output:

1

result:

ok single line: '1'

Test #4:

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

input:

1
1

output:

2

result:

ok single line: '2'

Test #5:

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

input:

1
100000000

output:

100000001

result:

ok single line: '100000001'

Test #6:

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

input:

2
0 0

output:

1

result:

ok single line: '1'

Test #7:

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

input:

7
5 6 7 7 10 9 10

output:

6

result:

ok single line: '6'

Test #8:

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

input:

1000000
100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 100000000 0 1000...

output:

0

result:

ok single line: '0'

Test #9:

score: 0
Accepted
time: 65ms
memory: 11232kb

input:

1000000
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 10...

output:

0

result:

ok single line: '0'

Test #10:

score: 0
Accepted
time: 54ms
memory: 11452kb

input:

1000000
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 10...

output:

100000001

result:

ok single line: '100000001'

Test #11:

score: 0
Accepted
time: 13ms
memory: 6640kb

input:

200003
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100...

output:

1

result:

ok single line: '1'

Test #12:

score: 0
Accepted
time: 54ms
memory: 11240kb

input:

1000000
2473480 74149519 73189691 18031588 56510103 21322964 60454287 35663543 87377454 40736700 18476136 60050072 61091420 42837492 21749894 54022358 18846579 82913333 17962414 29684685 2769927 60681737 11784005 2286972 84912255 2369090 79402711 53924919 67507705 79060650 60708139 69981185 5726541 ...

output:

0

result:

ok single line: '0'

Test #13:

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

input:

996834
48489898 98880704 86065711 17877971 74694490 26610426 85666766 93521604 38938841 31570389 42076492 25802366 73688874 7303341 44511564 35330799 41054184 42493839 45305608 33969229 87299471 58560364 33291852 24989660 7972194 91905590 25684372 35270889 80235565 68356605 60384079 81241836 1975368...

output:

0

result:

ok single line: '0'

Test #14:

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

input:

981503
97838688 15069414 65656978 26207243 58731120 98736576 30413249 68677590 40893359 54384069 65798754 7774553 43065271 37806418 57054124 17312278 2619983 5587489 49264711 85779179 53874732 11766181 21936678 2809016 42023207 15418275 25460329 43066567 48433348 14095671 33448059 98788410 81681459 ...

output:

0

result:

ok single line: '0'

Test #15:

score: 0
Accepted
time: 71ms
memory: 11248kb

input:

977903
99999421 99999033 99999681 180 99999733 99999715 99999231 382 82 302 228 99999095 644 99999373 890 514 140 99999537 99999061 99999805 190 99999189 99999559 99999809 858 99999841 188 99999221 99999893 332 34 38 99999349 99999647 218 99999729 99999009 988 99999347 99999927 290 99999119 99999021...

output:

0

result:

ok single line: '0'

Test #16:

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

input:

1000000
99999341 99999607 766 464 462 99999739 56 74 99999463 20 612 140 836 188 99999159 868 822 99999537 686 48 99999247 99999681 20 99999447 99999979 516 26 99999623 99999491 99999365 99999033 168 380 86 632 842 99999653 40 268 236 60 99999767 376 896 99999579 570 116 99999757 99999967 99999845 6...

output:

0

result:

ok single line: '0'

Test #17:

score: 0
Accepted
time: 62ms
memory: 11392kb

input:

999889
50000009 50000007 50000049 50000024 50000067 50000110 50000124 50000100 50000120 50000169 50000189 50000181 50000214 50000221 50000189 50000233 50000226 50000191 50000186 50000226 50000273 50000239 50000211 50000165 50000186 50000225 50000196 50000181 50000216 50000235 50000236 50000244 50000...

output:

49973342

result:

ok single line: '49973342'

Test #18:

score: 0
Accepted
time: 69ms
memory: 11452kb

input:

999952
50000017 49999969 49999941 49999953 49999931 49999929 49999933 49999884 49999906 49999888 49999848 49999846 49999885 49999888 49999843 49999827 49999826 49999816 49999810 49999849 49999883 49999864 49999894 49999854 49999838 49999799 49999844 49999801 49999769 49999768 49999804 49999846 49999...

output:

49971044

result:

ok single line: '49971044'

Test #19:

score: 0
Accepted
time: 62ms
memory: 11352kb

input:

999821
45218176 45240813 45242785 45230350 45266018 45240777 45309574 45369713 45352203 45376049 45375853 45353185 45351982 45310476 45310791 45247602 45247288 45230252 45201398 45210965 45174115 45083024 45081920 45003004 45047914 45031098 45053085 45138231 45123395 45081680 45015030 44947050 44954...

output:

1803449

result:

ok single line: '1803449'

Test #20:

score: 0
Accepted
time: 53ms
memory: 10628kb

input:

598499
42083130 42093589 42098338 42156951 42150040 42142903 42179908 42171510 42176025 42189362 42185798 42167143 42120831 42122992 42122839 42128393 42114031 42088950 42073576 42045871 41958400 41968894 41957082 41988037 41993944 42004076 42005439 42035272 41989427 42008840 41999840 41982562 42005...

output:

9162144

result:

ok single line: '9162144'

Test #21:

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

input:

562787
58077800 58025777 58038223 58033301 58029368 57998610 57944018 57999526 57925926 57943138 57837110 57858507 57838158 57908786 57949716 57960290 57899794 57866525 57909571 57910888 57841295 57881837 57962323 57958381 58003245 58003337 58003667 58021261 58032174 58039253 58039243 58107956 58176...

output:

4070024

result:

ok single line: '4070024'

Test #22:

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

input:

577210
84796200 84796888 84798631 84772725 84785930 84885433 84891392 84890446 84905792 85050306 85035331 85017315 85050528 84969161 84982568 85092466 85113059 85134289 85133857 85324242 85306249 85271584 85239096 85269073 85140992 85017455 84866553 84826481 84860723 85019080 85139841 85150294 85083...

output:

30668979

result:

ok single line: '30668979'

Test #23:

score: 0
Accepted
time: 76ms
memory: 11044kb

input:

922045
99955440 99977160 99913903 99919955 99970845 99920121 99921115 99912739 99924185 99905242 99999588 99992973 99919002 99941095 99907096 99984118 99925149 99934828 99946748 99900235 99964400 99927374 99920500 99995285 99969970 99936213 99987583 99970128 99928638 99982139 99917594 99984078 99997...

output:

61731620

result:

ok single line: '61731620'

Test #24:

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

input:

932445
99879255 99968572 99849205 99744154 99806172 99929836 99842752 99752450 99897832 99799716 99786895 99983709 99788998 99957102 99879681 99919085 99984439 99777004 99760228 99774352 99895668 99982760 99986424 99862636 99936295 99835882 99885552 99911121 99961788 99900345 99843809 99841042 99868...

output:

7751077

result:

ok single line: '7751077'

Test #25:

score: 0
Accepted
time: 62ms
memory: 11324kb

input:

956785
99773157 99703287 99939444 99704787 99815274 99700687 99897218 99944697 99984407 99997054 99682040 99892699 99688849 99731848 99753719 99798927 99945112 99719935 99806515 99821271 99685419 99727810 99779801 99659487 99993142 99896605 99883923 99659988 99788801 99795147 99748199 99921958 99780...

output:

2909589

result:

ok single line: '2909589'

Test #26:

score: -100
Wrong Answer
time: 50ms
memory: 11232kb

input:

999328
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...

output:

0

result:

wrong answer 1st lines differ - expected: '1', found: '0'