Make 24

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

http://www.4nums.com/theory/

Options

exec is denied

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

Sample input:_

1 1 1 8

Sample output:

(1+1+1)×8

Sample input:_

12 12 13 13

Sample output:

13+12+12-13

Sample input:_

1 1 10 12
1 2 11 11
9 10 12 12
1 1 2 8
1 5 5 10
9 10 12 13
8 10 13 13
1 5 6 6
1 1 12 12
2 6 7 12
8 11 12 12
1 1 2 7
1 5 5 11
9 12 12 12
8 11 12 12
1 1 11 11
1 1 13 13
1 2 10 12
9 9 10 13
10 10 12 12
1 6 6 6

Sample output:

12+10+1+1
(11+11+2)×1
(12+12)×(10-9)
(2+1)×8×1
(10-5)×5-1
13+12+9-10
13+13+8-10
(6×5-6)×1
12+12+1-1
(7-6)×12×2
(11-8)×12-12
(7+1)×(2+1)
(11-5)×(5-1)
(12-9)×12-12
(11-8)×12-12
11+11+1+1
13+13-1-1
(12+10+2)×1
9/9+13+10
12+12+10-10
(6-1)×6-6

Ranking

Perl _

RankUserSizeTimeDateStatistics
1brx1770.31182014/11/18 22:39:262B / 48B / 119B
2int-e ($$)1810.03592014/11/02 03:39:0433B / 59B / 80B
3b_jonas (zlib)2200.21762014/10/31 04:53:3078B / 86B / 52B
4b_jonas2300.01112014/10/31 04:54:208B / 113B / 89B
5jonas2320.02692014/10/29 21:36:448B / ?B / ?B
6tails1690.44062014/11/20 10:35:2413B / 40B / 107B
7tails (brx)1690.44782014/11/20 10:35:5013B / 40B / 107B

Haskell _

RankUserSizeTimeDateStatistics
1int-e3280.03402014/11/14 07:38:012B / 196B / 120B
2int-e3220.03302014/11/21 14:29:402B / 194B / 114B

AWK _

RankUserSizeTimeDateStatistics
1llhuii2880.03162014/11/19 00:24:388B / 161B / 106B

Bash _

RankUserSizeTimeDateStatistics
1fizzie(zcat)1910.02532014/10/31 06:41:36100B / 45B / 40B
2int-e (fizzie)1800.02132014/11/19 08:46:0385B / 62B / 27B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii2880.03272014/11/19 00:24:028B / 161B / 106B

Language Ranking_

RankLangUserSizeScore
1Perltails (brx)16910000
2Bashint-e (fizzie)1809388
3xgawkllhuii2885868
4AWKllhuii2885868
5Haskellint-e3225248

return top