sum of numbers

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

Your input is a bunch of numbers. The first number is the number of following numbers. One number per line. Output the sum of the numbers following the first number.

Ex:
Input:
3 <- lines
1 <- first line
5 <- second line
3 <- third line
Output:
9
(1+5+3=9)

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

6
2
3
1
5
4
3

Sample output:

18

Sample input:_

7
10
2
15
3
4
16
29

Sample output:

79

Sample input:_

13
3
29
29
4
2
5
25
26
29
32
64
24
32

Sample output:

304

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs190.03202018/12/05 22:21:290B / 13B / 5B
2rotary-o220.03202018/12/06 00:41:430B / 13B / 8B
3Histocrat270.04092018/12/05 08:49:220B / 15B / 11B
4olf270.03322018/12/05 19:58:290B / 18B / 7B

Ruby2 _

RankUserSizeTimeDateStatistics
1letranger250.16402018/12/05 22:35:420B / 16B / 8B
2rotary-o250.16092018/12/06 00:01:010B / 16B / 8B
3olf260.14712018/12/05 20:00:270B / 18B / 6B
4rotary-o230.15312018/12/06 00:58:233B / 13B / 7B

Perl _

RankUserSizeTimeDateStatistics
1test1180.03472018/12/05 07:15:030B / ?B / ?B
2tails180.03272018/12/05 12:04:020B / 10B / 7B
3mitchs180.03582018/12/05 22:08:550B / 10B / 7B
4llhuii180.05922018/12/05 23:20:030B / 10B / 8B

Python _

RankUserSizeTimeDateStatistics
1mitchs240.07342018/12/05 22:34:410B / 17B / 6B
2mitchs (alt)270.07362018/12/05 21:45:310B / 13B / 13B
3xnor300.10132018/12/05 16:47:490B / 19B / 10B
4articulated aardvark460.07612018/12/05 09:03:320B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1mypetlion390.11832018/12/05 03:59:370B / 22B / 17B
2mypetlion370.11522018/12/06 06:19:520B / 21B / 16B

JavaScript _

RankUserSizeTimeDateStatistics
1ZED.CWT450.05152018/12/05 18:36:250B / 24B / 21B

Lua _

RankUserSizeTimeDateStatistics
1ludo350.03392018/12/06 00:50:370B / 21B / 14B

Perl6 _

RankUserSizeTimeDateStatistics
1ludo171.91822018/12/06 00:45:030B / 11B / 4B
2kotatsugame171.10292018/12/11 02:15:170B / 11B / 4B

J _

RankUserSizeTimeDateStatistics
1Hendrik200.05582018/12/05 22:28:490B / 9B / 11B

sed _

RankUserSizeTimeDateStatistics
1tails210.03102018/12/05 11:47:260B / 14B / 4B
2mitchs210.03122018/12/05 22:09:550B / 14B / 4B
3llhuii210.03142018/12/06 00:03:300B / 14B / 4B
4kritixilithos210.02142018/12/06 02:25:190B / 14B / 4B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii260.00042018/12/06 00:48:190B / 15B / 6B

bc _

RankUserSizeTimeDateStatistics
1olf300.03172018/12/05 20:30:380B / 15B / 13B
2ludo300.03322018/12/06 00:52:530B / 15B / 13B

dc _

RankUserSizeTimeDateStatistics
1tails (mitchs@python)120.03132018/12/06 10:37:000B / 8B / 4B

R _

RankUserSizeTimeDateStatistics
1olf270.47052018/12/05 19:41:400B / 16B / 11B
2ludo270.34442018/12/06 00:41:550B / 16B / 11B

GolfScript _

RankUserSizeTimeDateStatistics
1tails80.04762018/12/05 12:12:160B / 0B / 8B
2mitchs80.04752018/12/05 22:11:230B / 0B / 8B

gs2 _

RankUserSizeTimeDateStatistics
1tails30.19812018/12/05 11:34:460B / 2B / 1B
2mitchs30.21562018/12/05 22:13:580B / 2B / 1B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik60.03702018/12/05 22:12:000B / 2B / 4B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o347.51192018/12/05 23:14:090B / 24B / 10B
2Hendrik367.15942018/12/05 22:10:080B / 29B / 7B
3rotary-o275.91252018/12/06 01:10:573B / 16B / 8B

Language Ranking_

RankLangUserSizeScore
1gs2tails310000
2BurlesqueHendrik65000
3GolfScripttails83750
4dctails (mitchs@python)122500
5Perl6ludo171764
6Perltest1181666
7Rubymitchs191578
8JHendrik201500
9sedtails211428
10Ruby2rotary-o231304
11Pythonmitchs241250
12Bash (builtins)llhuii261153
13Rolf271111
14Scalarotary-o271111
15bcolf301000
16Lualudo35857
17Python3mypetlion37810
18JavaScriptZED.CWT45666

return to the top page