Lisp like Evaluation

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

Input S-Expression Using +-*/()0123456789.
Output Evaluated.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

(+ 1 2)
(+ 3 4)
(* 3 5 8)
(/ 60 5 3)

Sample output:

3
7
120
4

Sample input:_

(- -2 -3 -4)
(+ 1 (+ 2 3)4 (* 5 3))
(+ 1 2  -2     (* 5  6 (/ 60 5 2 (- 6 3))))
(* (* 1 (* 1 (* 1 (* 1 (* 1 (* 1 (* 1 (* 1 )))))))))

Sample output:

5
25
61
1

Sample input:_

(+ 10 5 (* 32 350 10))
(+ 100 500 600 350 211)
(* 10 -39 -43 (+ 1 3 5))
(/ 60 3 (+ 20 - 18))
(+ (* 15 30 25 40 31) 52324)

Sample output:

112015
1761
150930
20
14002324

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid (embed)640.07082010/11/27 00:19:450B / 34B / 29B
2Third testcase is wrong and inputs are so short it's embeddable780.06882010/09/27 11:58:0210B / 39B / 19B

Perl _

RankUserSizeTimeDateStatistics
1tails670.00142010/12/15 17:53:040B / 39B / 18B
2teebee670.00062011/03/04 07:22:040B / 39B / 18B
3tails (no embed except "20")810.00482010/12/15 16:09:080B / 34B / 42B
4yuitest1430.20002010/09/25 14:59:170B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hallvabo (embed)820.08102010/09/26 03:05:180B / 57B / 25B
2leonid (embed)820.09452010/11/27 00:23:470B / 57B / 25B
3twobit820.08942012/06/23 23:47:230B / 57B / 25B

Scheme _

RankUserSizeTimeDateStatistics
1kaki420.15562011/11/05 17:33:380B / 27B / 15B
2mht670.06842012/10/23 20:43:350B / 39B / 21B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima440.82892010/09/28 23:06:420B / 25B / 16B
2kaki440.07402011/10/29 13:29:480B / 25B / 16B

Clojure _

RankUserSizeTimeDateStatistics
1uochan(embed)1165.86082010/11/21 19:06:521B / ?B / ?B

Io _

RankUserSizeTimeDateStatistics
1pooq870.51442010/11/25 23:25:350B / 62B / 14B

JavaScript _

RankUserSizeTimeDateStatistics
1xulapp870.04372010/10/31 01:12:000B / 61B / 25B
2FizzyTea870.03952016/02/07 12:28:110B / 61B / 25B
3idealmachine(embed)880.03282010/12/04 10:49:120B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1twobit910.04212012/06/23 23:58:550B / 52B / 29B
2clock910.03612012/08/11 07:56:210B / 52B / 29B
3pooq920.00202010/10/09 23:17:130B / 51B / 31B

Xtal _

RankUserSizeTimeDateStatistics
1pooq870.06812010/10/08 13:20:380B / 56B / 21B

Icon _

RankUserSizeTimeDateStatistics
1pooq1040.05922012/04/05 07:31:010B / 69B / 31B

BASIC _

RankUserSizeTimeDateStatistics
1pooq1050.00222010/10/15 05:20:000B / 68B / 20B

J _

RankUserSizeTimeDateStatistics
1pooq700.07672010/10/01 01:30:290B / 47B / 13B

K _

RankUserSizeTimeDateStatistics
1twobit580.04542012/06/23 23:53:050B / 40B / 8B

C _

RankUserSizeTimeDateStatistics
1kou2370.00172010/10/14 16:23:150B / 109B / 124B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai (embed)930.13022010/09/27 16:49:220B / 61B / 21B

Java _

RankUserSizeTimeDateStatistics
1teebee1280.17102016/02/06 06:04:540B / 87B / 37B
2dc1300.20922016/02/05 20:24:490B / 90B / 38B
3Klemmbrett1300.17902016/02/05 20:29:070B / ?B / ?B

Maxima _

RankUserSizeTimeDateStatistics
1clock840.24192012/10/30 19:18:580B / 53B / 21B
2pooq970.48182010/10/01 08:28:320B / 62B / 25B

AWK _

RankUserSizeTimeDateStatistics
1mft4340.00232010/10/01 23:33:510B / 221B / 198B

Bash _

RankUserSizeTimeDateStatistics
1narb300.13612010/09/29 18:22:450B / ?B / ?B
2idealmachine920.01322010/12/05 07:19:500B / ?B / ?B

Zsh _

RankUserSizeTimeDateStatistics
1narb300.15082010/09/29 18:22:500B / ?B / ?B

Fish _

RankUserSizeTimeDateStatistics
1narb300.20232010/09/29 18:22:560B / ?B / ?B

R _

RankUserSizeTimeDateStatistics
1pooq740.89252011/01/28 15:54:460B / 49B / 15B
2clock740.48062012/10/13 10:29:350B / 49B / 15B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)740.04292016/06/08 07:38:3713B / 38B / 22B

GolfScript _

RankUserSizeTimeDateStatistics
1narb360.19612010/09/25 19:37:170B / ?B / ?B

gs2 _

RankUserSizeTimeDateStatistics
1whio330.22462017/06/12 22:59:2919B / 10B / 4B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*570.09282010/10/15 03:48:1229B / 15B / 12B

Vim _

RankUserSizeTimeDateStatistics
1clock860.12002012/04/04 23:11:020B / 49B / 21B
2nn880.10202010/10/16 01:21:082B / 55B / 30B

Scala _

RankUserSizeTimeDateStatistics
1pooq9510.23332011/02/19 05:33:340B / 69B / 26B

Language Ranking_

RankLangUserSizeScore
1Bashnarb3010000
2Zshnarb3010000
3Fishnarb3010000
4gs2whio339090
5GolfScriptnarb368333
6Schemekaki427142
7Common LISPkozima446818
8z80*yuko*575263
9Ktwobit585172
10Rubyleonid (embed)644687
11Perltails674477
12Jpooq704285
13Rpooq744054
14Brainfuckmitchs (cheat)744054
15Pythonhallvabo (embed)823658
16Maximaclock843571
17Vimclock863488
18Xtalpooq873448
19JavaScriptxulapp873448
20Iopooq873448
21Luatwobit913296
22OCamlm.ukai (embed)933225
23Scalapooq953157
24Iconpooq1042884
25BASICpooq1052857
26Clojureuochan(embed)1162586
27Javateebee1282343
28Ckou2371265
29AWKmft434691

return top