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
2JayXon300.11882019/05/25 10:37:440B / 20B / 10B
3c_r_5350.12232019/05/01 09:39:320B / ?B / ?B
4mypetlion370.11522018/12/06 06:19:520B / 21B / 16B

Io _

RankUserSizeTimeDateStatistics
1pooq600.15162019/07/17 08:28:480B / ?B / ?B

JavaScript _

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

Lua _

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

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq270.04112019/09/06 08:48:210B / ?B / ?B

BASIC _

RankUserSizeTimeDateStatistics
1pooq440.03512019/09/06 09:08:490B / ?B / ?B

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

C _

RankUserSizeTimeDateStatistics
1tails400.03172019/05/24 09:52:154B / 22B / 14B
2chocobi490.03332019/05/23 22:16:470B / 26B / 23B
3McBusLuck710.03162019/05/18 06:28:380B / ?B / ?B

Maxima _

RankUserSizeTimeDateStatistics
1pooq330.17182019/10/17 12:35:090B / ?B / ?B

Octave _

RankUserSizeTimeDateStatistics
1Hendrik370.40452019/07/11 17:59:010B / 21B / 16B

AWK _

RankUserSizeTimeDateStatistics
1test210.03242019/05/25 17:48:290B / 9B / 12B
2test2210.03112019/05/31 17:44:590B / 12B / 8B
3McBusLuck230.03552019/05/24 23:59:230B / ?B / ?B
4Dingledooper (sym)460.03602019/08/28 12:15:330B / ?B / ?B

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

jq _

RankUserSizeTimeDateStatistics
1pooq270.03432019/08/10 03:23:310B / ?B / ?B

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
10AWKtest211428
11Ruby2rotary-o231304
12Pythonmitchs241250
13Bash (builtins)llhuii261153
14Rolf271111
15Scalarotary-o271111
16jqpooq271111
17PARI/GPpooq271111
18bcolf301000
19Python3JayXon301000
20Maximapooq33909
21Lualudo35857
22OctaveHendrik37810
23Ctails40750
24BASICpooq44681
25JavaScriptZED.CWT45666
26Iopooq60500

return to the top page