Look and say

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

Print out the first 12 terms of the look-and-say sequence starting with a given
number n.

http://en.wikipedia.org/wiki/Look-and-say_sequence

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

1

Sample output:

1
11
21
1211
111221
312211
13112221
1113213211
31131211131221
13211311123113112211
11131221133112132113212221
3113112221232112111312211312113211

Sample input:_

22

Sample output:

22
22
22
22
22
22
22
22
22
22
22
22

Sample input:_

333

Sample output:

333
33
23
1213
11121113
31123113
132112132113
11131221121113122113
311311222112311311222113
1321132132211213211321322113
11131221131211132221121113122113121113222113
3113112221131112311332211231131122211311123113322113

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid460.04562010/10/16 10:24:360B / 21B / 24B
2Histocrat460.03462013/07/27 08:04:220B / 21B / 24B
3ludo460.03612016/06/06 00:48:240B / 21B / 24B
4yvl500.27212007/08/05 01:21:150B / 25B / 25B
5shinh500.27012007/08/05 02:14:200B / 25B / 23B
6irori500.23992007/08/05 08:54:500B / 25B / 24B
7kurimura500.27562007/08/05 13:36:170B / 25B / 25B
8eban500.26452007/08/05 17:04:070B / 25B / 25B
9flagitious500.22892007/08/05 22:36:540B / 25B / 23B
10niha500.26262007/08/06 11:16:000B / 25B / 25B
11yowa500.09112007/09/09 14:22:020B / 25B / 23B
12clock500.05012012/02/17 11:13:130B / 25B / 25B
13jpl500.03712014/06/21 04:43:420B / ?B / ?B
14kt3k510.10852008/01/25 23:34:590B / 25B / 25B
15J-_-L530.00742010/08/01 07:49:180B / 22B / 30B
16Mark Byers540.28312007/08/05 21:11:040B / 28B / 24B
17tabasa1370.18342007/11/21 08:49:516B / 65B / 56B

Ruby2 _

RankUserSizeTimeDateStatistics
1Histocrat570.24282015/11/04 05:23:140B / 25B / 32B
2olf580.17992016/05/24 02:22:010B / 29B / 29B

Perl _

RankUserSizeTimeDateStatistics
1ySas420.13512007/08/08 16:03:090B / 16B / 26B
2leonid420.07292008/08/19 08:10:470B / 16B / 26B
3jg420.00392010/05/12 14:00:270B / ?B / ?B
4teebee420.00402011/01/05 19:05:120B / 18B / 23B
5tails420.03662011/05/18 08:34:380B / 16B / 26B
6primo420.03772013/09/02 20:29:170B / 18B / 23B
7llhuii420.03442015/08/16 00:41:010B / ?B / ?B
8tybalt89430.14152007/08/05 15:14:530B / ?B / ?B
9Terje K430.11892007/08/06 19:13:220B / ?B / ?B
10shinh450.09902007/08/14 13:16:280B / 18B / 26B
11mauke480.08372009/09/13 17:27:540B / 22B / 26B
12eban500.13252007/08/05 02:31:490B / 23B / 27B
13ott500.15322007/08/11 07:21:370B / 18B / 32B
14ninjalj510.00662011/03/01 00:30:240B / 24B / 27B
15Mithran520.08672007/10/29 23:36:290B / 28B / 22B
16corruptio520.00662011/02/03 03:31:200B / 20B / 31B
17jonas560.04632014/10/13 03:51:490B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hiro.suzuki 850.36242007/08/07 21:17:220B / 47B / 34B
2leonid850.20032012/04/03 05:58:410B / 47B / 34B
3hallvabo850.09372014/02/01 11:25:340B / 47B / 34B
4kt3k890.26882007/10/23 21:39:550B / 38B / 46B
5hirose900.11652007/10/23 09:57:200B / 43B / 42B
6twobit900.10632013/02/18 08:55:390B / 51B / 36B
7starmie900.10832015/08/14 11:17:330B / 51B / 35B
8llhuii930.08822015/08/16 01:26:020B / ?B / ?B
9Mark Byers950.34702007/08/08 17:27:590B / 46B / 44B
10lifthrasiir960.10432015/03/24 15:03:250B / 48B / 45B
11Thammi970.08322010/08/01 05:51:540B / 56B / 34B
12hallvabo (re)970.10132014/01/31 23:20:230B / 49B / 43B
13hallvabo (itertools)1010.10182014/01/31 17:50:230B / 61B / 31B
14recursive1020.04022010/04/13 23:31:590B / 66B / 27B
15kaoru1080.32072008/05/02 07:53:140B / 67B / 34B
16zetamatta1090.19912007/11/23 15:53:110B / 72B / 26B
17shbird1130.22112007/10/23 10:27:560B / ?B / ?B
18KUN1210.15682007/10/23 07:54:018B / 60B / 38B
19py21250.19732007/10/23 03:15:480B / 57B / 40B
20rolf1340.05552012/12/30 09:12:360B / ?B / ?B
21TsXc1720.16312007/10/23 02:15:3013B / 57B / 35B
22tabasa1940.66182007/09/25 17:31:259B / 98B / 59B

PHP _

RankUserSizeTimeDateStatistics
1clock800.13432012/02/19 03:27:1722B / 32B / 26B
2primo800.28082012/04/14 12:01:4622B / 32B / 26B
3o-cn810.09162011/01/05 07:26:3722B / 33B / 26B
4lifthrasiir900.08562011/05/18 03:31:150B / 46B / 43B
5pooq1240.35792008/10/18 05:33:440B / 48B / 75B
6daira1400.37772007/10/02 18:52:400B / 56B / 83B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1070.07192012/11/29 01:34:430B / 60B / 44B
2motemen1270.10432007/11/03 14:38:480B / ?B / ?B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima1610.39062007/08/16 10:56:110B / 75B / 69B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr1035.30582010/05/12 15:07:340B / 60B / 36B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr1362.48052008/03/08 23:40:490B / 95B / 30B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr770.03662010/04/14 12:53:430B / 42B / 35B
2nn770.00402010/04/15 23:40:270B / 46B / 31B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr1100.03702008/06/02 10:19:310B / 58B / 45B
2rickrickrick1130.12612007/08/08 17:56:340B / 65B / 40B
3twobit1130.03502012/08/25 00:52:400B / 59B / 46B
4AndoDaan1370.03292014/08/10 15:20:300B / 81B / 45B

Tcl _

RankUserSizeTimeDateStatistics
1clock1200.04502012/08/26 12:33:250B / 77B / 14B
2murky-satyr1520.05532008/07/11 06:16:510B / 95B / 28B

Xtal _

RankUserSizeTimeDateStatistics
1murky-satyr1050.25762007/11/28 19:43:410B / 52B / 52B
2tabasa3050.47362007/11/21 10:20:2517B / 143B / 123B

Kite _

RankUserSizeTimeDateStatistics
1clock1190.41622012/07/08 06:43:020B / 65B / 52B

SNOBOL _

RankUserSizeTimeDateStatistics
1clock1110.06322012/07/21 13:37:240B / 52B / 27B

Icon _

RankUserSizeTimeDateStatistics
1clock960.05412012/04/15 18:20:420B / 56B / 35B

REXX _

RankUserSizeTimeDateStatistics
1clock1030.03602012/11/17 02:58:130B / 65B / 23B

Smalltalk _

RankUserSizeTimeDateStatistics
1clock1130.06132013/01/07 09:13:440B / 74B / 31B
2murky-satyr1190.45702008/07/11 03:25:070B / 53B / 60B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*1260.02902014/03/08 18:54:480B / 71B / 48B
2clock1270.04082013/03/28 03:44:310B / 67B / 51B
3pooq1320.18772008/10/18 05:18:370B / 70B / 51B
4yt1550.17122007/08/23 13:32:010B / 76B / 64B

J _

RankUserSizeTimeDateStatistics
1I., S.390.10582011/09/04 20:41:000B / 10B / 29B
2pooq470.10812010/10/17 05:47:320B / 11B / 36B

K _

RankUserSizeTimeDateStatistics
1twobit380.05082012/04/03 06:15:090B / 9B / 28B
2teebee380.04782012/07/01 23:40:480B / 9B / 28B

C _

RankUserSizeTimeDateStatistics
1tails960.03162016/06/07 09:22:460B / 40B / 56B
27gyou1010.02312007/12/09 20:28:560B / 53B / 48B
3letter1010.07232007/12/10 10:28:240B / 53B / 48B
451b1010.08572007/12/15 01:12:000B / 53B / 48B
5hinoe1200.04052007/09/15 07:10:330B / 66B / 54B
6csanders1290.02362010/11/25 05:12:080B / 63B / 66B
7inaniwa1510.04862009/11/11 14:10:120B / 79B / 71B
8tabasa3090.09202007/09/25 18:19:4924B / 138B / 118B

C++ _

RankUserSizeTimeDateStatistics
1tabasa3790.08482007/09/25 18:28:0728B / 192B / 123B

D _

RankUserSizeTimeDateStatistics
151b1350.07182008/04/11 20:12:310B / 83B / 49B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1720.15492009/07/22 00:19:150B / 97B / 62B

Haskell _

RankUserSizeTimeDateStatistics
1henkma860.04142012/06/26 19:15:590B / 54B / 28B
2notogawa870.09302007/08/08 20:15:010B / ?B / ?B
3rst76870.00162009/12/04 15:58:450B / 55B / 28B
4Defenestrator880.11882007/08/08 09:48:270B / 62B / 21B
5tttaki880.03312012/10/02 05:49:400B / 62B / 21B
6Lost_dog890.28752010/08/07 23:22:150B / 61B / 23B
7kurimura900.09912007/08/05 17:59:400B / 62B / 23B
8tanakh900.13912007/08/23 13:22:130B / 62B / 25B
9_900.01682007/11/10 03:07:110B / 63B / 21B
10sss920.12962007/08/29 01:51:080B / 63B / 23B
11twobit930.03302013/05/20 04:12:350B / 67B / 20B
12moriA940.08492007/08/05 13:37:330B / 68B / 21B
13konn950.09752007/08/18 11:00:270B / ?B / ?B
14yy1570.03482012/07/17 21:26:591B / ?B / ?B
15wa3030.03342012/07/17 21:43:2311B / ?B / ?B
16sakaki8600.04922012/05/04 19:39:430B / 312B / 82B

Java _

RankUserSizeTimeDateStatistics
17gyou2670.97942007/10/01 21:14:280B / 180B / 78B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1550.03252014/03/08 18:55:110B / 97B / 52B
2uru1790.03722009/01/03 23:54:510B / ?B / ?B

C# _

RankUserSizeTimeDateStatistics
1ha2220.50012009/04/02 22:55:510B / ?B / ?B

Nemerle _

RankUserSizeTimeDateStatistics
1clock1570.15322012/08/23 16:34:030B / 91B / 63B
2murky-satyr1971.89462008/10/23 02:23:470B / 131B / 60B

AWK _

RankUserSizeTimeDateStatistics
1llhuii750.03602014/05/27 10:38:200B / 35B / 39B
2nn870.07382008/11/18 00:40:030B / 37B / 45B

sed _

RankUserSizeTimeDateStatistics
1tails610.03302015/08/14 17:35:050B / 20B / 36B
2clock640.03522013/09/19 15:36:510B / 18B / 41B
3emoken1030.11012007/08/14 18:23:420B / 26B / 63B
4eban1150.10722007/08/14 22:25:510B / 50B / 55B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails1060.07902016/06/07 12:42:030B / 41B / 51B

wake _

RankUserSizeTimeDateStatistics
1clock880.07312011/12/06 23:54:350B / ?B / ?B
2murky-satyr900.03312010/07/22 12:16:430B / 22B / 62B

dc _

RankUserSizeTimeDateStatistics
1tails680.03082011/05/18 11:43:510B / 49B / 19B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii740.03292014/05/27 10:29:060B / 35B / 38B

Postscript _

RankUserSizeTimeDateStatistics
1ySas630.87942007/08/13 11:43:0621B / 23B / 18B
2yshl(bin)640.90982007/08/13 23:00:2725B / 23B / 16B
3yshl1060.85722007/08/13 23:00:360B / 77B / 15B

R _

RankUserSizeTimeDateStatistics
1clock1070.52542012/10/14 13:55:520B / 45B / 58B
2NikNakk1180.45942014/07/07 02:05:580B / ?B / ?B
3pooq1253.62102008/05/31 11:52:220B / 64B / 58B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)1170.11292015/10/05 10:11:181B / 0B / 115B
2mitchs1390.05192014/04/06 10:45:310B / 0B / 139B

Whitespace _

RankUserSizeTimeDateStatistics
1kaz_u1960.03452015/05/02 23:54:410B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1tails310.07692016/06/06 17:09:340B / 10B / 21B
2narb340.16752011/04/30 03:37:160B / ?B / ?B
3flagitious410.69382007/12/21 12:55:330B / 13B / 28B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs130.27472015/04/26 18:13:275B / 4B / 3B

FlogScript _

RankUserSizeTimeDateStatistics
1clock290.15862012/06/14 14:17:360B / 5B / 24B
2milieu300.31892010/10/26 22:14:540B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik160.06362015/01/14 00:10:260B / 11B / 5B
2clock170.05312015/01/14 09:00:360B / 11B / 6B

Lazy-K _

RankUserSizeTimeDateStatistics
1irori9100.33362008/03/15 14:52:180B / 466B / 444B

Universal Lambda _

RankUserSizeTimeDateStatistics
1hinoe690.16242009/03/22 23:34:4053B / 9B / 5B
2irori760.92862008/12/28 01:29:3659B / 12B / 3B

z80 _

RankUserSizeTimeDateStatistics
1kodera320.52892008/07/26 03:29:3819B / 6B / 4B
2ySas370.48962007/12/11 02:58:0719B / 5B / 8B

Vim _

RankUserSizeTimeDateStatistics
1udioica470.04252016/11/30 12:45:362B / ?B / ?B
2clock530.12902012/01/02 23:52:350B / 18B / 32B
3pla550.07822010/01/23 05:23:304B / 31B / 20B
4nn550.12302010/11/08 10:54:234B / 29B / 22B
5eban590.36602008/01/29 15:45:210B / 37B / 21B
6doug590.12102010/07/22 15:58:280B / 35B / 23B

goruby _

RankUserSizeTimeDateStatistics
1leonid410.10452010/01/03 21:15:290B / 14B / 26B
2murky-satyr420.33602010/10/17 04:27:120B / 13B / 27B
3eban460.17562008/01/05 04:19:370B / 19B / 24B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr776.20372010/08/23 00:41:490B / 50B / 24B
2clock772.91002013/02/04 19:13:280B / 47B / 28B
3nn783.52412009/12/26 02:30:500B / 49B / 27B
4hoozie8410.12872008/03/29 13:43:450B / 47B / 36B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr9823.29522011/06/16 20:52:000B / 52B / 42B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs1310000
2BurlesqueHendrik168125
3FlogScriptclock294482
4GolfScripttails314193
5z80kodera324062
6Ktwobit383421
7JI., S.393333
8gorubyleonid413170
9PerlySas423095
10Rubyleonid462826
11Vimudioica472765
12Ruby2Histocrat572280
13sedtails612131
14PostscriptySas632063
15dctails681911
16Universal Lambdahinoe691884
17xgawkllhuii741756
18AWKllhuii751733
19JavaScriptmurky-satyr771688
20Groovymurky-satyr771688
21PHPclock801625
22Pythonhiro.suzuki 851529
23Haskellhenkma861511
24wakeclock881477
25Iconclock961354
26Ctails961354
27Scalamurky-satyr981326
28Clojuremurky-satyr1031262
29REXXclock1031262
30Xtalmurky-satyr1051238
31Bash (builtins)tails1061226
32Rclock1071214
33Schemekaki1071214
34Luamurky-satyr1101181
35SNOBOLclock1111171
36Smalltalkclock1131150
37Brainfuckmitchs (cheat)1171111
38Kiteclock1191092
39Tclclock1201083
40BASIC*yuko*1261031
41D51b135962
42Iomurky-satyr136955
43Pascal*yuko*155838
44Nemerleclock157828
45Common LISPkozima161807
46OCamlksk172755
47Whitespacekaz_u196663
48C#ha222585
49Java7gyou267486
50C++tabasa379343
51Lazy-Kirori910142

Referer

Note that, they may contain spoilers.

return top