LED recognition

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

Recognize LED display (decimal number) and decode it.

Options

exec is denied

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

Sample input:_

   
  |
  |
 _ 
 _|
 _|
 _ 
 _|
|_ 
   
|_|
  |
 _ 
|_ 
 _|
 _ 
  |
  |
 _ 
|_ 
|_|
 _ 
|_|
|_|
 _ 
|_|
  |
 _  _ 
 _| _|
|_ |_ 
 _  _ 
  |  |
  |  |
    _    
  | _|  |
  ||_   |
 _  _  _ 
|_  _||_|
|_||_ |_|
 _  _  _  _ 
|_ |_  _| _|
 _| _| _||_ 
    _  _  _ 
  || || || |
  ||_||_||_|
 _  _     _  _ 
|_ |_ |_| _| _|
|_| _|  | _||_ 
    _           _ 
  | _|  ||_|  | _|
  ||_   |  |  ||_ 
    _  _  _  _  _ 
  | _| _| _|| ||_|
  ||_  _| _||_||_|
 _  _  _  _  _  _ 
 _| _| _|| ||_||_ 
|_  _||_ |_|  | _|
    _     _     _ 
  ||_ |_||_   || |
  ||_|  ||_|  ||_|
 _  _  _  _  _  _ 
 _|| |  |  | _| _|
|_ |_|  |  | _||_ 
 _  _     _  _    
  ||_   ||_  _|  |
  ||_|  ||_||_   |
 _  _  _  _  _  _ 
 _|  |  ||_ |_||_|
 _|  |  | _|  |  |
 _  _  _  _     _ 
  ||_||_||_   ||_|
  |  |  | _|  ||_|
 _  _  _  _  _  _ 
 _|  ||_ |_||_ |_ 
 _|  | _||_||_| _|
 _  _  _  _  _  _ 
|_   |  || ||_||_|
 _|  |  ||_|  |  |
       _  _  _  _ 
|_||_| _|  | _|| |
  |  ||_   | _||_|
 _  _     _  _  _ 
 _||_||_| _| _|  |
|_   |  | _||_   |
 _  _     _  _  _ 
|_ |_||_| _| _|| |
 _|  |  | _||_ |_|
 _  _  _  _  _  _ 
|_|  |  ||_|| ||_ 
  |  |  |  ||_| _|
    _     _  _    
|_||_||_| _||_ |_|
  ||_|  | _||_|  |
 _  _  _  _  _  _ 
|_ |_||_ | ||_||_ 
 _|  ||_||_|  ||_|
 _  _  _  _  _  _ 
|_ |_ | ||_ | || |
 _||_||_| _||_||_|
 _  _  _  _     _ 
 _||_| _|| ||_||_|
 _|  ||_ |_|  ||_|
 _  _  _  _  _  _ 
|_||_ |_ |_ | || |
  ||_| _||_||_||_|
 _     _  _  _    
  ||_||_|  ||_   |
  |  |  |  | _|  |
 _  _  _  _  _  _ 
|_|| ||_ | | _||_|
  ||_||_||_||_   |
 _  _        _ 
|_|| |  ||_||_|
  ||_|  |  ||_|
 _     _  _       
|_   ||_|| ||_||_|
 _|  |  ||_|  |  |
    _  _  _  _  _ 
  |  || ||_ |_|| |
  |  ||_||_|  ||_|
 _  _  _  _  _  _ 
|_| _||_||_ | ||_ 
|_| _||_| _||_||_|
    _  _  _  _  _ 
  ||_ |_||_  _| _|
  ||_||_||_||_  _|
 _  _  _  _  _  _ 
|_||_ |_ |_|| | _|
|_||_| _||_||_||_ 
 _     _  _  _ 
|_||_|  |  |  |
|_|  |  |  |  |
    _     _  _    
|_|  ||_||_  _|  |
  |  |  ||_| _|  |
 _  _  _  _  _  _ 
|_  _|  | _||_  _|
|_| _|  | _||_||_ 
 _     _  _  _  _ 
 _|  ||_||_||_ |_|
|_   ||_|  | _||_|
 _  _  _  _  _  _ 
|_| _|| ||_ |_| _|
|_||_ |_||_|  | _|
 _  _  _  _  _    
|_|  ||_||_ |_ |_|
  |  |  | _||_|  |
 _  _  _  _     _ 
 _||_   ||_ |_|  |
|_ |_|  ||_|  |  |
 _  _  _  _     _ 
 _| _| _| _||_| _|
|_ |_  _| _|  | _|
 _  _     _  _  _ 
 _| _||_| _||_ |_ 
 _| _|  ||_ |_||_|
 _  _  _  _     _ 
 _||_ | || |  ||_ 
|_  _||_||_|  ||_|
 _     _  _  _  _ 
|_||_|  ||_   ||_|
|_|  |  ||_|  ||_|
       _  _  _    
  ||_| _||_|  |  |
  |  | _|  |  |  |
 _  _     _       
|_|| ||_|  |  ||_|
|_||_|  |  |  |  |
 _  _     _     _ 
 _||_ |_||_||_| _|
 _||_|  |  |  ||_ 
 _     _     _    
|_|  || |  ||_|  |
  |  ||_|  ||_|  |
 _  _     _  _  _ 
 _||_||_||_|| ||_|
 _||_|  |  ||_||_|
 _  _  _  _  _  _ 
|_  _|| | _|  | _|
 _| _||_| _|  ||_ 
 _  _  _  _  _ 
|_ |_  _||_ | |
 _| _||_ |_||_|
 _  _  _  _  _  _ 
|_ |_||_ | | _|| |
 _|  ||_||_||_ |_|
    _  _  _  _  _ 
|_||_ |_|  ||_ |_|
  ||_|  |  ||_||_|
 _     _  _  _  _ 
  |  || ||_|| ||_|
  |  ||_|  ||_|  |
          _  _  _ 
  |  |  |  || ||_ 
  |  |  |  ||_| _|
 _  _  _  _     _ 
|_ |_   ||_ |_||_ 
|_| _|  ||_|  | _|
 _  _  _  _  _    
|_| _| _|| |  |  |
|_||_  _||_|  |  |
 _  _  _     _  _ 
|_||_  _||_| _||_|
  | _| _|  ||_ |_|
    _  _        _ 
  |  | _||_|  ||_ 
  |  | _|  |  ||_|
 _  _  _  _  _ 
 _||_ |_||_||_|
|_ |_|  ||_||_|
          _  _    
  ||_||_| _|| ||_|
  |  |  | _||_|  |
 _  _  _  _     _ 
|_| _||_  _|  |  |
  ||_  _||_   |  |
 _  _  _        _ 
|_|  | _|  |  ||_ 
  |  | _|  |  ||_|
 _  _     _  _  _ 
|_|| ||_||_||_||_|
|_||_|  |  ||_|  |
 _  _  _  _  _  _ 
 _||_|| |  ||_  _|
|_ |_||_|  ||_||_ 
 _  _     _     _ 
|_||_|  ||_ |_| _|
|_|  |  ||_|  | _|
 _  _  _  _  _    
 _|  ||_ | ||_   |
 _|  | _||_||_|  |
 _  _  _  _  _ 
 _|| | _||_   |
|_ |_| _| _|  |
 _     _  _  _  _ 
|_||_||_   || ||_ 
  |  | _|  ||_||_|
 _  _  _  _  _  _ 
  ||_ | ||_||_  _|
  | _||_|  | _||_ 
 _     _  _  _  _ 
  ||_| _||_ | ||_|
  |  | _||_||_|  |
    _  _  _  _ 
  || || ||_| _|
  ||_||_||_||_ 
 _  _  _  _  _    
 _|| | _||_ |_   |
 _||_||_ |_| _|  |
 _  _  _  _  _    
|_||_ |_||_ |_||_|
|_| _||_||_|  |  |
 _  _  _  _  _  _ 
 _| _| _| _|| | _|
|_ |_ |_ |_ |_||_ 
    _  _  _     _ 
|_|| |  || ||_|  |
  ||_|  ||_|  |  |
 _  _  _  _  _  _ 
|_ |_||_||_| _||_ 
|_|  ||_||_| _| _|
    _  _  _     _ 
  | _||_  _|  ||_|
  ||_  _||_   |  |
 _  _     _  _  _ 
|_||_   ||_ |_  _|
|_| _|  | _||_| _|
 _  _  _  _  _  _ 
|_ |_  _| _||_| _|
|_||_||_  _|  | _|
 _  _     _       
|_  _||_|  ||_|  |
 _| _|  |  |  |  |
 _  _  _  _  _ 
  ||_ |_||_ |_ 
  | _||_| _||_|
 _  _  _  _  _  _ 
|_ |_||_ |_|  ||_ 
|_||_| _||_|  | _|
 _  _     _  _    
|_|| ||_||_ | |  |
  ||_|  | _||_|  |
    _  _  _  _ 
|_|  ||_ |_  _|
  |  | _||_||_ 
 _  _  _  _     _ 
|_||_||_ | |  ||_ 
  ||_| _||_|  ||_|
 _  _  _  _  _  _ 
 _||_||_||_ |_||_ 
 _|  |  ||_||_| _|
 _  _     _     _ 
  ||_||_|| |  || |
  |  |  ||_|  ||_|
       _  _  _  _ 
|_||_|| ||_||_ | |
  |  ||_||_||_||_|
 _     _  _  _  _ 
 _|  ||_  _||_   |
 _|  | _| _||_|  |
          _  _  _ 
|_||_||_||_  _| _|
  |  |  ||_||_  _|
 _     _  _  _  _ 
  ||_||_ |_||_ |_ 
  |  ||_|  ||_||_|
 _     _  _  _  _ 
  |  ||_||_| _||_|
  |  |  ||_| _||_|
 _     _  _  _  _ 
 _||_||_|| || ||_|
|_   |  ||_||_||_|
 _     _  _  _  _ 
|_||_| _||_||_  _|
|_|  | _|  | _||_ 
 _  _     _     _ 
|_|| ||_||_|  ||_ 
|_||_|  |  |  ||_|
    _  _     _  _ 
  ||_|  ||_||_ |_ 
  ||_|  |  | _| _|
 _  _     _    
 _||_||_|| |  |
 _|  |  ||_|  |
    _  _  _  _    
|_|  ||_||_ |_||_|
  |  ||_| _||_|  |
 _  _     _     _ 
 _||_|  | _|  || |
|_ |_|  ||_   ||_|
    _  _  _  _  _ 
  |  |  ||_ |_||_ 
  |  |  ||_|  | _|
 _  _  _  _  _  _ 
|_||_||_||_ |_|  |
|_||_||_||_||_|  |
 _  _  _  _  _  _ 
|_| _|  ||_||_   |
|_||_   |  | _|  |
    _  _  _       
  | _| _|  ||_||_|
  ||_ |_   |  |  |
 _  _  _  _       
|_   ||_||_ |_||_|
 _|  ||_| _|  |  |

Sample output:

1
3
2
4
5
7
6
8
9
22
77
121
628
5532
1000
65432
121412
123308
232095
164610
207732
761621
377599
799518
375865
577099
442730
294327
594320
977905
484364
596096
560500
392048
965600
749751
906029
90148
519044
170690
838506
168623
865802
84777
474631
637362
218958
820693
979564
267647
223343
334266
250016
847678
143971
804714
364942
910181
384908
530372
55260
596020
469768
710909
111705
657645
823071
953428
173416
26988
144304
925217
973116
804989
280762
891643
375061
20357
945706
750952
743609
10082
302651
858694
222202
407047
698835
125219
851563
662393
534741
75856
685875
904501
47562
985016
399685
794010
440860
315367
444623
746966
719838
249008
843952
804916
187455
39401
478584
281210
177695
888687
827957
122744
578544

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1flagitious($$)750.13792009/09/23 22:29:570B / 35B / 36B
2flagitious780.06972009/09/23 22:23:560B / 40B / 34B
3leonid870.02862009/09/23 10:21:029B / 44B / 31B
4hide241020.04622009/09/29 18:13:418B / 51B / 36B
5kurimura1060.03522009/10/02 05:51:380B / 51B / 55B

Perl _

RankUserSizeTimeDateStatistics
1tails650.01172016/06/23 19:06:140B / 27B / 38B

Python _

RankUserSizeTimeDateStatistics
1recursive1150.06152009/09/20 06:35:370B / 60B / 45B
2primo1180.07792009/09/21 12:57:524B / 60B / 48B
3hallvabo1250.07982009/09/22 21:06:050B / 77B / 44B

PHP _

RankUserSizeTimeDateStatistics
1Chiether3270.08112009/09/30 10:39:510B / 157B / 166B
2Chiether(Dirty)4250.05952009/09/29 18:15:49251B / 116B / 56B
3leonid (alnum)7311.25052009/09/19 16:22:170B / 617B / 0B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1230.18822009/09/23 10:22:510B / 60B / 63B
2murky-satyr1260.20822009/09/23 05:56:290B / 66B / 57B

Lua _

RankUserSizeTimeDateStatistics
1zetamatta2980.13162009/09/20 02:32:120B / 131B / 142B

J _

RankUserSizeTimeDateStatistics
1I., S.600.04122011/08/17 05:58:440B / 27B / 33B

C _

RankUserSizeTimeDateStatistics
1hinoe1240.10372009/10/01 01:14:090B / 65B / 59B
2nu1250.00242009/09/28 13:21:340B / 66B / 59B
351b1430.01192009/09/27 16:21:500B / 83B / 60B
4RiSK2230.02692009/10/02 22:13:580B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
151b1650.02382009/09/27 20:28:050B / 108B / 53B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1730.16852009/09/20 23:14:180B / 93B / 70B
2xsd2040.06732009/09/20 01:47:150B / 121B / 72B

Haskell _

RankUserSizeTimeDateStatistics
1monqy2760.00432011/07/29 16:45:020B / 96B / 114B

AWK _

RankUserSizeTimeDateStatistics
1nn1130.07272009/09/30 06:38:110B / 58B / 55B

sed _

RankUserSizeTimeDateStatistics
1tails1470.74262016/06/24 19:05:370B / 47B / 91B
2%201830.20752016/06/23 20:02:500B / 31B / 126B

Bash _

RankUserSizeTimeDateStatistics
1eban7370.08972009/09/20 02:23:220B / 619B / 3B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1090.41982009/09/27 19:36:5051B / 43B / 15B
2yshl2042.35692009/09/27 19:36:290B / 155B / 21B

GolfScript _

RankUserSizeTimeDateStatistics
1flagitious400.71232009/09/23 10:37:080B / 20B / 20B
2tails (flagitious)360.12862016/06/27 14:08:040B / 22B / 12B

gs2 _

RankUserSizeTimeDateStatistics
1whio280.14482017/03/24 02:57:5816B / 6B / 6B

z80 _

RankUserSizeTimeDateStatistics
1kodera570.83582009/09/22 00:58:0234B / 12B / 7B

Groovy _

RankUserSizeTimeDateStatistics
1nn1773.26112009/11/07 12:02:270B / 93B / 79B

Language Ranking_

RankLangUserSizeScore
1gs2whio2810000
2GolfScripttails (flagitious)367777
3z80kodera574912
4JI., S.604666
5Perltails654307
6Rubyflagitious($$)753733
7Postscriptyshl(bin)1092568
8AWKnn1132477
9Pythonrecursive1152434
10JavaScriptnn1232276
11Chinoe1242258
12sedtails1471904
13D51b1651696
14OCamlksk1731618
15Groovynn1771581
16Haskellmonqy2761014
17Luazetamatta298939
18PHPChiether327856
19Basheban737379

return to the top page