Digit Tally

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

For each line, count the number of occurrences of each digit and output the counts of each digit from 0 to 9 without spaces.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

176093677603
27204322879364
82330228112748
49297634652846
115800908259216
24502788451825
99991133635003
42782169235947
12863427063462
20731807143228
139118285699340
16758962389145
1254130462814
74822625282332
84688165162423
23394686883038
63440961940754
8027293896136
110238925612731
73164767897254
123278446320899
134526965675645
75904957026872
65030099836447
121345711020756
109723529538556
140282221854709
86058259722811
37464999732749
118236154692362
52896817220571
95305324300082
1236950611354
38826504364782
82738250012792
117879672429821
68247030340169
104668353018870
64450279274877

Sample output:

2102003301
1042201211
1242100130
0021313112
3320021022
1130230130
2204011004
0131211212
1132203110
2232100220
1312111023
0211122122
1321311010
0062111120
0221213030
1014102041
2101412102
1122002122
1432011111
0111212411
1132201122
0111244101
2020121312
3002212112
2421121200
1122041112
2240210121
1230021131
0012301304
0332113011
1230021221
4023120011
1312122001
1022212130
2141010221
0330101322
3112202111
3202112130
1020311411

Sample input:_

16716012741175
44036299687834
84323092933990
45956150070714
132495446134442
63934883191163
20946555513044
75265006906726
7756710946001
91006062058717
76596446784823
47429323850833
120804545136670
90267327664566
3457448690481
24678882095412
131181186131461
11278584148512
12863427075753
14478334769194
85255100849278
83395380006104
54537494728008
97646081484083
20968030367878
73005854109632
28265179804927
81441169882801
82712480208030
36180804526685
83507049161343
85061827315694
20538533642058
33333241213017
21822728841152
87187836130196
43881680884115
72597832221699
53858889894523

Sample output:

1510112300
1012302122
2024100014
3200231201
0222611001
0304102022
2111341001
3020024201
3200112301
4210012211
0011313221
1024210121
3211222110
1021115201
1101411121
1130211131
0802102020
0420220130
1122121310
0202401212
2120130131
4103111021
2011320221
2101302131
3012002231
3112121111
1130111222
1410201041
4131100130
2111123030
2203211111
1211122121
2023131020
1326100100
0350110130
1302002231
1301211050
0141011213
0012130052

Sample input:_

16758962413612
133478993633688
76489072597866
86058259737452
63771674412701
62032212679167
24730421717691
79736067881108
71829033090237
114594022453387
82944408429218
100158637364869
27487790696886
83348135367369
132216273252884
63342177691879
29205777634154
98994701230747
39350490398460
73478300508659
74569222202092
123334280896180
15869904179896
135390254076667
5879810259204
22406844390176
9427453236890
25378961771743
36258113942191
79379585567162
97989678882920
24013162172569
26740466417052
117707873718964
57170309680860
118446608109490
47545287990448
49250389998866
71077413795364

Sample output:

0321113111
0105102132
1010113322
1021131221
1311202400
1241003201
1321201301
2201002331
3123000212
1222320111
1130400032
2202113121
1010103332
0105112121
0252111120
0212102312
1121221301
2111200313
3003211013
3002121221
2060111102
2223101031
1200112124
2112123201
2120120122
2121302111
1022211112
0212111411
0422111012
0111032312
1020001244
1331112101
2120313200
1301101521
4101012221
3300302022
1010420222
1011112034
1202211401

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat460.03682017/07/30 00:36:170B / 21B / 25B
2rotary-o460.04002017/07/30 17:37:230B / 21B / 24B
3mitchs460.03562017/08/15 10:04:400B / 21B / 24B
4letranger460.05662017/09/18 09:50:280B / 21B / 24B
5xsot470.03472017/07/29 21:47:430B / 21B / 22B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o440.15462017/07/30 17:34:510B / 21B / 22B
2mitchs440.22172017/08/15 10:07:050B / 21B / 22B
3letranger440.14982017/09/18 09:44:120B / 21B / 22B
4ndimov450.15142017/08/28 03:20:340B / ?B / ?B
5kachick540.15002017/09/08 02:31:310B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tails330.04752017/08/12 01:55:010B / 12B / 19B
2llhuii350.04092017/09/16 12:28:460B / 13B / 22B
3%20370.03582017/08/11 19:10:150B / 19B / 16B
4letranger460.03482017/09/18 10:25:530B / 16B / 30B

Python _

RankUserSizeTimeDateStatistics
1llhuii530.07532017/09/16 19:22:510B / 33B / 19B
2mitchs530.07532017/09/16 19:55:340B / 33B / 19B
3hallvabo540.07222017/07/30 07:42:040B / 36B / 18B
4xsot540.07092017/07/30 12:20:210B / 36B / 17B
5lynn540.07352017/07/31 05:17:180B / 36B / 17B
6dianne540.07342017/07/31 05:35:200B / 36B / 17B
7xnor540.08322017/07/31 15:32:590B / 36B / 17B
8twobit540.16662017/08/01 18:02:010B / ?B / ?B
9rolf650.07162017/07/30 22:21:300B / 42B / 20B
10Erik the Outgolfer680.07312017/07/29 03:24:390B / 44B / 20B

Python3 _

RankUserSizeTimeDateStatistics
1xsot540.12642017/07/29 12:37:150B / 37B / 16B
2dianne540.13412017/07/30 05:38:370B / 37B / 16B
3mitchs540.11292017/07/30 06:11:370B / 37B / 16B
4lynn540.13152017/07/30 07:03:480B / 37B / 16B
5Erik the Outgolfer750.12732017/07/29 03:59:420B / 46B / 25B

JavaScript _

RankUserSizeTimeDateStatistics
1ETHproductions680.04192017/08/01 10:14:520B / 41B / 27B
2FizzyTea680.05552017/08/21 21:08:060B / 44B / 23B
3god880.04152017/09/20 07:18:470B / ?B / ?B

Tcl _

RankUserSizeTimeDateStatistics
1toomas940.06702017/08/17 23:05:540B / 57B / 20B

Perl6 _

RankUserSizeTimeDateStatistics
1tails541.57152017/07/28 15:47:490B / 26B / 25B

C _

RankUserSizeTimeDateStatistics
1llhuii740.03162017/09/16 23:12:080B / 44B / 30B
2nu770.03152017/09/05 17:08:310B / 44B / 33B
3tails780.03132017/09/01 15:20:250B / 42B / 36B
4%20820.03162017/09/19 19:12:260B / 49B / 32B

Haskell _

RankUserSizeTimeDateStatistics
1henkma700.03712017/08/11 16:15:550B / 41B / 25B
2cojna700.03842017/08/13 23:49:120B / 38B / 30B
3lynn700.03712017/08/14 19:41:400B / 38B / 31B
4dianne710.03702017/08/01 04:48:570B / 39B / 31B
5yuki810.03682017/07/31 16:45:120B / 48B / 31B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1560.17492017/09/03 22:50:520B / 97B / 53B
2Megamoff2660.23022017/08/30 08:57:4411B / 143B / 72B

AWK _

RankUserSizeTimeDateStatistics
1mitchs350.03212017/09/03 13:22:130B / 21B / 13B
2llhuii350.03542017/09/16 12:58:420B / 19B / 16B

sed _

RankUserSizeTimeDateStatistics
1tails950.07302017/07/30 11:10:020B / 34B / 52B
2%201000.07472017/07/30 07:11:380B / 35B / 55B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii660.29872017/09/16 14:33:300B / 28B / 28B
2tails720.06602017/07/31 09:15:430B / 31B / 32B

dc _

RankUserSizeTimeDateStatistics
1tails470.04582017/07/28 14:50:230B / 32B / 15B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs1350.03802017/08/20 07:52:040B / 0B / 135B

GolfScript _

RankUserSizeTimeDateStatistics
1tails190.15152017/07/30 00:01:330B / 4B / 15B
2twobit202.73502017/08/01 19:34:190B / 4B / 16B
3Erik the Outgolfer210.10832017/07/29 03:16:530B / 5B / 16B

gs2 _

RankUserSizeTimeDateStatistics
1whio90.19152017/08/03 01:17:062B / 4B / 3B
2tails90.19892017/08/03 09:32:142B / 4B / 3B
3mitchs90.19792017/08/19 11:16:142B / 4B / 3B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik230.09522017/07/28 16:45:100B / 11B / 12B

Vim _

RankUserSizeTimeDateStatistics
1udioica360.33742017/07/28 11:38:125B / 19B / 10B

goruby _

RankUserSizeTimeDateStatistics
1mitchs310.64232017/08/20 08:35:540B / 15B / 15B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o716.25942017/07/30 14:50:510B / 48B / 20B

Language Ranking_

RankLangUserSizeScore
1gs2whio910000
2GolfScripttails194736
3BurlesqueHendrik233913
4gorubymitchs312903
5Perltails332727
6AWKmitchs352571
7Vimudioica362500
8Ruby2rotary-o442045
9RubyHistocrat461956
10dctails471914
11Pythonllhuii531698
12Perl6tails541666
13Python3xsot541666
14Bash (builtins)llhuii661363
15JavaScriptETHproductions681323
16Haskellhenkma701285
17Scalarotary-o711267
18Cllhuii741216
19Tcltoomas94957
20sedtails95947
21Brainfuckmitchs135666
22Javarotary-o156576

return top