Deadfish

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

Implement Deadfish.

Commands: i for increment, d for decrement, s for square, o for output, h to halt.

If you decrement zero you get zero and if the result ever becomes 256 it should change to zero immediately.

Options

exec is denied

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

Sample input:_

i
o
o
s
d
o
s
s
i
s
d
o
o
d
o
d
d
i
o
d
d
o
s
s
s
o
i
i
d
d
d
o
o
d
o
d
d
o
s
s
o
i
o
d
d
d
d
d
d
d
o
o
o
d
o
d
d
o
h

Sample output:

1
1
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0

Sample input:_

i
o
i
o
i
s
o
i
s
o
d
s
o
d
d
o
d
d
o
d
d
o
s
o
d
o
i
o
i
i
o
i
i
o
i
i
o
h

Sample output:

1
2
9
100
9801
9799
9797
9795
95942025
95942024
95942025
95942027
95942029
95942031

Sample input:_

o
d
d
o
i
o
i
d
o
s
o
s
i
s
o
s
i
o
d
s
i
o
d
s
i
o
i
s
s
i
o
s
o
h

Sample output:

0
0
1
1
1
4
17
1
1
17
289

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid540.05652011/05/25 13:17:070B / 26B / 26B
2yvl560.02862011/05/16 15:43:550B / 29B / 26B
3Cnry570.06022011/05/25 19:49:270B / 28B / 27B
4bk1e690.05062011/05/15 03:50:090B / 35B / 31B
5@tttttanaka540.09052012/03/14 01:32:350B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89500.05432011/05/17 10:50:160B / ?B / ?B
2tails510.02002011/05/28 06:47:100B / 20B / 31B
3teebee550.02762011/05/15 05:05:060B / 20B / 34B
4Hem560.04892011/05/25 03:08:520B / 15B / 41B
5zzo38600.04282011/05/26 07:17:190B / 25B / 35B
6ais523710.04202011/05/16 22:11:560B / ?B / ?B
7ninjalj750.03212011/05/19 23:01:040B / 32B / 43B
8adam780.05062011/05/24 19:12:070B / 27B / 48B
9nandhp880.03272011/05/20 06:04:560B / 24B / 60B
10risou920.02392011/05/27 15:03:150B / 38B / 52B
11teebee(tails,tybalt89)480.03892011/05/28 08:20:180B / 15B / 33B
12zzo38580.03832011/05/28 08:03:130B / 23B / 35B

Python _

RankUserSizeTimeDateStatistics
1leonid690.08182011/05/25 11:31:240B / ?B / ?B
2lifthrasiir710.09332011/05/16 17:50:490B / 33B / 36B
3twobit720.12352011/05/15 02:36:540B / 34B / 35B
4hallvabo730.08662011/05/15 04:53:210B / 31B / 38B
5lifthrasiir(genuine)730.09642011/05/27 16:13:090B / 35B / 36B
6#esoteric740.09182011/05/16 19:25:470B / 37B / 32B
7ditto900.09872011/05/17 09:28:290B / ?B / ?B
8bk1e910.08752011/05/20 13:34:440B / 52B / 25B
9hirose940.07812011/05/26 14:56:450B / 53B / 34B

Scheme _

RankUserSizeTimeDateStatistics
1dico_leque840.08672011/05/27 05:53:310B / 39B / 39B
2kaki840.10912011/05/27 07:20:260B / 39B / 41B
3youz880.11212011/05/25 17:39:470B / 40B / 40B
4cddddr980.09372011/05/27 14:04:460B / 45B / 45B
5kaki810.05882013/03/25 06:41:390B / 33B / 47B

Common LISP _

RankUserSizeTimeDateStatistics
1youz900.74392011/05/25 17:39:260B / 42B / 40B
2kozima900.62222011/05/27 23:57:170B / 43B / 39B

Arc _

RankUserSizeTimeDateStatistics
1youz726.56782011/05/25 17:39:400B / 30B / 34B

JavaScript _

RankUserSizeTimeDateStatistics
10mg670.02372011/05/15 09:11:170B / 32B / 35B
2murky-satyr670.02572011/05/27 08:44:530B / 31B / 36B
3nn680.03542011/05/25 23:43:240B / 35B / 33B
4emdstr740.02862011/05/28 03:03:380B / 38B / 36B
5zzo38(cheat)780.03382011/05/27 15:26:590B / 38B / 40B
6zzo38820.06022011/05/27 15:25:080B / 40B / 42B
7zzo38(0mg,cheat)660.04502011/05/28 08:07:510B / 33B / 33B

Lua _

RankUserSizeTimeDateStatistics
1twobit980.03022011/05/18 22:53:280B / 58B / 27B

Tcl _

RankUserSizeTimeDateStatistics
1bk1e1470.26042011/05/20 15:18:270B / 76B / 38B

Forth _

RankUserSizeTimeDateStatistics
1zzo38(cheat)890.10392011/05/28 05:55:290B / 42B / 18B
2zzo38990.09282011/05/14 07:45:030B / 47B / 18B
3zzo38(cheat)880.10052011/05/28 07:45:190B / 43B / 16B

BASIC _

RankUserSizeTimeDateStatistics
1pooq950.02672011/05/15 22:33:140B / 54B / 30B

Erlang _

RankUserSizeTimeDateStatistics
1ali1780.71232011/05/18 19:38:470B / 88B / 80B
2ali1771.59192011/06/24 13:29:120B / 88B / 80B

J _

RankUserSizeTimeDateStatistics
1I., S.550.17062011/05/14 23:38:330B / 15B / 40B

C _

RankUserSizeTimeDateStatistics
1nn770.01882011/05/14 15:40:570B / 37B / 40B
2not770.03912011/05/25 08:31:110B / 37B / 40B
3inaniwa770.04322011/05/25 10:57:290B / 37B / 40B
4kou800.03282011/05/26 14:27:450B / 39B / 41B
5zzo38810.00512011/05/15 06:12:470B / 35B / 46B
6koi810.03602011/05/25 22:40:350B / 41B / 40B
7chocobi850.04252011/05/24 02:44:050B / 43B / 42B
8Agano900.03352011/05/26 02:14:280B / 47B / 43B
9lifthrasiir910.03422011/05/18 14:01:130B / 46B / 45B
10kazoo_tm910.03312011/05/26 06:41:480B / 48B / 43B
11cddddr960.03892011/05/27 15:13:370B / 42B / 54B
12yukke960.03092011/05/28 00:06:000B / ?B / ?B
13bk1e970.00212011/05/15 03:17:430B / 47B / 50B
14saru970.03912011/05/26 02:25:220B / 52B / 45B
15freiheit980.04242011/05/23 18:17:590B / 48B / 50B
16mcx990.03592011/05/26 00:19:100B / 49B / 50B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1200.14252011/05/16 23:55:360B / 61B / 53B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa970.04822011/05/21 21:55:390B / 56B / 31B
2lifthrasiir1140.03642011/05/17 02:27:410B / 64B / 45B
3Kroisse1200.03602011/05/17 02:54:460B / 61B / 55B
4kyagrd1500.03272011/05/17 10:40:130B / ?B / ?B

ObjC _

RankUserSizeTimeDateStatistics
1zzo38810.03922011/05/21 04:18:120B / 35B / 46B

Pascal _

RankUserSizeTimeDateStatistics
1uru1530.04182011/05/22 22:57:300B / 96B / 45B

AWK _

RankUserSizeTimeDateStatistics
1zzo38390.02782011/05/16 11:14:230B / 16B / 23B
2hemflit400.02422011/05/15 23:27:540B / 14B / 26B
3eban430.00792011/05/24 21:58:270B / 13B / 30B
4bk1e530.00642011/05/21 15:52:390B / 22B / 30B
5ninjalj580.03292011/05/19 23:43:150B / 26B / 31B
6nandhp660.00562011/05/20 06:05:280B / 28B / 36B
7eban350.07832011/05/31 16:05:390B / 14B / 21B
8Doc390.03822016/11/27 14:47:320B / 16B / 23B

Bash _

RankUserSizeTimeDateStatistics
1zzo38450.05072011/05/21 05:45:100B / 19B / 25B
2nandhp1040.10732011/05/20 22:56:290B / 44B / 47B
3bk1e1080.04682011/05/20 14:44:260B / 37B / 55B
4zzo38(eban,cheat)410.41982011/06/25 00:45:020B / 17B / 23B

Zsh _

RankUserSizeTimeDateStatistics
1zzo38450.05452011/05/21 05:48:200B / 19B / 25B

Fish _

RankUserSizeTimeDateStatistics
1zzo38450.34512011/05/21 05:48:270B / 19B / 25B

dc _

RankUserSizeTimeDateStatistics
1tails970.01732011/05/25 02:34:400B / 74B / 20B
2tails960.02232011/05/28 08:03:550B / 73B / 23B

xgawk _

RankUserSizeTimeDateStatistics
1zzo38390.02452011/05/16 11:14:320B / 16B / 23B

Postscript _

RankUserSizeTimeDateStatistics
1KirarinSnow(bin)640.45252011/05/14 08:55:0413B / 29B / 21B
2KirarinSnow820.44412011/05/14 08:50:520B / 51B / 21B

Whitespace _

RankUserSizeTimeDateStatistics
1una3370.03302011/06/07 23:22:110B / 0B / 0B

Befunge _

RankUserSizeTimeDateStatistics
1kaki760.04242011/05/24 09:09:212B / 25B / 42B

Aheui _

RankUserSizeTimeDateStatistics
1Naprecks2070.03222015/02/10 05:59:23198B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1KirarinSnow(genuine)360.28162011/05/28 00:27:540B / 7B / 22B
2KirarinSnow380.15782011/05/26 10:16:390B / 9B / 29B
3zzo38440.17052011/05/14 13:46:400B / 10B / 33B
4nooodl440.16992011/05/17 01:35:530B / ?B / ?B
5tails (KirarinSnow)340.17812012/03/14 03:36:530B / 7B / 22B

FlogScript _

RankUserSizeTimeDateStatistics
1zzo38410.35712011/05/14 07:56:360B / 17B / 22B
2zzo38390.33842011/06/04 04:30:350B / 17B / 21B

Burlesque _

RankUserSizeTimeDateStatistics
1mroman690.04842014/10/09 15:51:380B / 39B / 30B
2AndoDaan840.04622014/10/06 21:47:570B / 32B / 52B

Vim _

RankUserSizeTimeDateStatistics
1udioica(!)470.04912017/05/28 03:48:560B / 20B / 25B

Groovy _

RankUserSizeTimeDateStatistics
1nn746.39132011/05/14 15:46:190B / 41B / 32B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr11021.02872011/05/27 14:12:310B / 67B / 37B
2zakki11620.36792011/05/28 02:43:070B / 64B / 50B
3dico_leque12020.87042011/05/16 15:01:260B / 76B / 39B

Language Ranking_

RankLangUserSizeScore
1GolfScripttails (KirarinSnow)3410000
2AWKeban359714
3xgawkzzo38398717
4FlogScriptzzo38398717
5Bashzzo38(eban,cheat)418292
6Zshzzo38457555
7Fishzzo38457555
8Vimudioica(!)477234
9Perlteebee(tails,tybalt89)487083
10Rubyleonid546296
11JI., S.556181
12PostscriptKirarinSnow(bin)645312
13JavaScriptzzo38(0mg,cheat)665151
14Pythonleonid694927
15Burlesquemroman694927
16Arcyouz724722
17Groovynn744594
18Befungekaki764473
19Cnn774415
20ObjCzzo38814197
21Schemekaki814197
22Forthzzo38(cheat)883863
23Common LISPyouz903777
24BASICpooq953578
25dctails963541
26Haskellnotogawa973505
27Luatwobit983469
28Scalamurky-satyr1103090
29OCamlm.ukai1202833
30Tclbk1e1472312
31Pascaluru1532222
32Erlangali1771920
33AheuiNaprecks2071642
34Whitespaceuna3371008

return top