Accumulate Value in Reverse

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Accumulate value starting from the last element

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

1
2
3
4
5

Sample output:

5
9
12
14
15

Sample input:_

16
5
20
7
10
1
8
2
7
8
9
13
22
17
25
8
16
12
21
1
21
6
7
2
16

Sample output:

16
18
25
31
52
53
74
86
102
110
135
152
174
187
196
204
211
213
221
222
232
239
259
264
280

Sample input:_

6
24
23
0
1
24
13
2
17
17
3
7
24
23
18
21
0
18
3
7
21
5
8
18
10
24
1
24
23
10
20
3
14
5
8
1
22
17
21
17
23
25
3
1
3
6
13
21
15
2

Sample output:

2
17
38
51
57
60
61
64
89
112
129
150
167
189
190
198
203
217
220
240
250
273
297
298
322
332
350
358
363
384
391
394
412
412
433
451
474
498
505
508
525
542
544
557
581
582
582
605
629
635

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Dingledooper320.05312022/05/10 14:34:370B / 17B / 12B
2rotary-o320.05632022/05/11 22:31:070B / 17B / 13B

Ruby2 _

RankUserSizeTimeDateStatistics
1Sisyphus190.18212022/05/10 14:39:500B / 6B / 10B
2Dingledooper190.18032022/05/10 14:43:000B / 6B / 11B
3rotary-o190.20882022/05/12 21:04:510B / 6B / 10B
4lynn190.17462022/05/13 20:33:060B / 6B / 11B
5Histocrat330.17932022/05/10 22:47:100B / 12B / 18B
6hee320.17472022/06/11 21:30:080B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1Sisyphus270.05572022/05/10 14:36:520B / 16B / 10B
2Dingledooper270.04502022/05/10 14:38:360B / 16B / 10B
3tails270.04492022/05/10 14:59:360B / 16B / 10B
4teebee270.04442022/05/11 01:13:340B / 16B / 10B
5Hydrazer270.07402022/05/22 07:05:280B / 16B / 10B

Python _

RankUserSizeTimeDateStatistics
1Dingledooper570.19812022/05/23 17:54:530B / 33B / 20B
2xnor570.09132022/05/24 01:43:340B / 33B / 20B
3Sisyphus580.10522022/05/10 10:15:280B / 31B / 22B
4hallvabo580.09212022/05/10 15:56:140B / 31B / 22B

Python3 _

RankUserSizeTimeDateStatistics
1_470.26522022/05/23 16:00:470B / 28B / 16B
2btnlq470.13812022/05/23 16:01:500B / 28B / 16B
3Dingledooper470.14122022/05/23 17:41:340B / 28B / 16B
4Sisyphus470.14492022/05/23 19:17:510B / 28B / 16B
5ovs480.13842022/05/23 17:44:100B / 28B / 17B
6xnor480.14222022/05/24 01:47:340B / 28B / 17B
7hallvabo510.14592022/05/10 16:05:570B / 25B / 21B
8orthoplex510.16192022/05/11 14:56:400B / 29B / 18B

JavaScript _

RankUserSizeTimeDateStatistics
1Dingledooper480.06472022/05/23 15:33:040B / 27B / 20B
2Irratix490.06222022/05/12 15:46:450B / 28B / 19B
3KrausRaus620.06202022/05/12 14:57:460B / 31B / 30B
4emplv630.06022022/05/11 17:25:020B / 34B / 28B
5Bedstorm740.06012022/05/13 07:23:270B / ?B / ?B

SNOBOL _

RankUserSizeTimeDateStatistics
1teebee690.04762022/05/15 00:08:030B / 31B / 22B

Perl6 _

RankUserSizeTimeDateStatistics
1Fleur271.74832022/05/10 11:05:520B / 18B / 6B
2teebee271.24762022/05/11 03:40:250B / 18B / 6B

K _

RankUserSizeTimeDateStatistics
1teebee120.04712022/05/11 03:55:210B / 3B / 9B
2Hendrik120.04362022/05/12 19:51:230B / 3B / 9B

Atlas _

RankUserSizeTimeDateStatistics
1tails70.35922023/03/22 21:55:580B / 1B / 6B
2darrenks120.35182023/03/20 23:44:290B / 1B / 11B

C _

RankUserSizeTimeDateStatistics
1rotary-o550.04282022/05/22 09:26:210B / 27B / 28B
2tails550.04112022/05/22 18:23:390B / 27B / 28B
3chocobi580.04162022/05/23 20:10:550B / 28B / 30B

Haskell _

RankUserSizeTimeDateStatistics
1lynn620.04942022/05/13 20:35:080B / 49B / 11B
2xnor620.05442022/05/16 16:52:530B / 49B / 11B
3Sakisan630.05252022/05/13 17:08:250B / 51B / 10B
4Shanethegamer670.04762022/05/13 07:48:020B / 53B / 12B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1590.19292022/05/11 23:08:510B / 102B / 51B

Octave _

RankUserSizeTimeDateStatistics
1Fleur410.43582022/05/11 08:19:090B / 26B / 15B
2teebee410.43422022/05/11 14:51:200B / 27B / 14B
3Hendrik410.43572022/05/11 20:55:390B / 27B / 14B

AWK _

RankUserSizeTimeDateStatistics
1teebee380.04252022/05/11 01:45:020B / 22B / 15B
2Fleur380.04562022/05/11 08:29:590B / 21B / 16B
3McBusLuck390.04222022/05/21 19:22:080B / 18B / 21B

jq _

RankUserSizeTimeDateStatistics
1teebee350.05202022/05/11 02:36:280B / 19B / 15B
2eban550.04882022/05/10 19:18:180B / 33B / 21B

jq 1.6 _

RankUserSizeTimeDateStatistics
1eban510.05362022/05/10 19:49:130B / 29B / 21B

Bash _

RankUserSizeTimeDateStatistics
1tails140.03242022/05/10 13:15:070B / 10B / 3B
2Fleur140.02772022/05/10 13:26:200B / 10B / 3B
3teebee140.02892022/05/11 01:19:520B / 10B / 3B
4eban180.02302022/05/10 18:59:320B / 9B / 8B
5McBusLuck180.02262022/05/11 13:39:490B / 9B / 8B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails330.05582022/05/23 00:34:580B / 11B / 15B
2McBusLuck520.04912022/05/22 18:06:480B / 21B / 25B

Zsh _

RankUserSizeTimeDateStatistics
1McBusLuck140.05302022/05/24 16:28:270B / 10B / 3B

Fish _

RankUserSizeTimeDateStatistics
1McBusLuck140.08722022/05/24 16:28:330B / 10B / 3B

dc _

RankUserSizeTimeDateStatistics
1tails170.04542022/05/10 13:32:420B / 12B / 5B
2Fleur180.05012022/05/10 10:45:380B / 10B / 8B

Postscript _

RankUserSizeTimeDateStatistics
1zzo38330.22902023/01/07 13:08:110B / 25B / 6B

GolfScript _

RankUserSizeTimeDateStatistics
1lynn180.07322022/06/19 06:52:000B / 1B / 17B

gs2 _

RankUserSizeTimeDateStatistics
1tails60.21462022/05/10 14:36:541B / 3B / 1B
2whio60.20492022/05/11 04:11:401B / 4B / 1B

Nibbles _

RankUserSizeTimeDateStatistics
1tails30.08772022/05/10 14:28:241B / 1B / 1B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails9190.18902022/05/23 02:09:570B / 495B / 424B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o689.53132022/05/11 22:30:500B / 44B / 21B

Logo _

RankUserSizeTimeDateStatistics
1teebee570.04942022/05/17 08:21:380B / 42B / 5B

Language Ranking_

RankLangUserSizeScore
1Nibblestails310000
2gs2tails65000
3Atlastails74285
4Kteebee122500
5Bashtails142142
6ZshMcBusLuck142142
7FishMcBusLuck142142
8dctails171764
9GolfScriptlynn181666
10Ruby2Sisyphus191578
11Perl6Fleur271111
12PerlSisyphus271111
13RubyDingledooper32937
14Bash (builtins)tails33909
15Postscriptzzo3833909
16jqteebee35857
17AWKteebee38789
18OctaveFleur41731
19Python347638
20JavaScriptDingledooper48625
21jq 1.6eban51588
22Crotary-o55545
23Logoteebee57526
24PythonDingledooper57526
25Haskelllynn62483
26Scalarotary-o68441
27SNOBOLteebee69434
28Javarotary-o159188
29Lazy-Ktails91932

return to the top page