Digit depth

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

Replace zero digits by their depth in the parentheses.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

000(00(0(00)0)00(00000000(0)00(00000(0(0(0(00000000(0(0)00)0)00)0)000)00000)00000)000)0

Sample output:

000(11(2(33)2)11(22222222(3)22(33333(4(5(6(77777777(8(9)88)7)66)5)444)33333)22222)111)0

Sample input:_

00000(0000(0000(0)000000(000)00(000)0)0(0(0000000(0(00(0(0)00)0)0)000)0)00)0

Sample output:

00000(1111(2222(3)222222(333)22(333)2)1(2(3333333(4(55(6(7)66)5)4)333)2)11)0

Sample input:_

00(0(00000(0000(000(000(000(0)0)00(0)00(00)0(000)00)00)00)00000)00(000)0)0

Sample output:

00(1(22222(3333(444(555(666(7)6)55(6)55(66)5(666)55)44)33)22222)11(222)1)0

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1xsot320.03682017/03/06 13:06:470B / 9B / 21B
2rotary-o380.03622017/03/05 21:38:590B / 17B / 20B
3Histocrat420.02102017/03/09 02:12:030B / 23B / 19B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o360.61892017/03/05 21:23:550B / 17B / 18B
2xsot360.20112017/03/06 17:15:430B / 10B / 24B
3ludo360.27322017/03/17 00:20:460B / 17B / 18B

Perl _

RankUserSizeTimeDateStatistics
1tails270.03282017/03/03 00:41:510B / 9B / 16B
2shlomif270.03362017/03/14 05:35:360B / 9B / 16B
3%20360.03302017/03/03 05:05:020B / 9B / 27B

Python _

RankUserSizeTimeDateStatistics
1rolf710.08682017/03/03 05:52:320B / 34B / 30B
2lynn710.10012017/03/03 06:34:360B / ?B / ?B
3dianne710.08732017/03/03 08:25:260B / 36B / 28B
4xsot710.15812017/03/03 11:32:170B / 36B / 28B
5xnor710.09172017/03/03 13:48:420B / 35B / 30B
6ludo710.08802017/03/16 18:24:260B / 36B / 29B
7hallvabo780.08822017/03/03 05:47:180B / 40B / 30B
8shlomif860.10672017/03/15 00:24:580B / 40B / 39B
9mcgridles1280.10672017/03/10 12:50:290B / ?B / ?B
10vklonghml1340.09462017/03/06 14:13:010B / ?B / ?B
11Mr. Xcoder (first try)1060.07302017/10/14 15:01:260B / 59B / 40B

Python3 _

RankUserSizeTimeDateStatistics
1olf630.15592017/03/09 00:56:310B / 34B / 25B
2xsot630.15062017/03/09 10:52:010B / 33B / 26B
3ludo630.30482017/03/17 00:20:070B / 33B / 26B

Scheme _

RankUserSizeTimeDateStatistics
1kaki850.22512017/03/06 20:50:060B / 43B / 38B

Common LISP _

RankUserSizeTimeDateStatistics
1hsu1080.04332017/10/09 15:19:210B / ?B / ?B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea570.22552017/03/14 23:55:160B / 32B / 22B
2Shmiddty650.05332017/03/11 03:22:280B / 38B / 27B
3ETHproductions580.10232017/03/28 01:30:310B / 33B / 22B

C _

RankUserSizeTimeDateStatistics
1nu570.03162017/03/03 14:07:000B / 33B / 24B
2tails570.03192017/03/03 18:23:560B / 32B / 25B
3rotary-o570.03182017/03/06 08:18:030B / 33B / 24B
4xsot570.03192017/03/08 10:46:080B / 32B / 25B
5ludo570.03442017/03/16 18:25:030B / 33B / 24B
6dianne580.03192017/03/08 08:40:060B / 32B / 26B
7kou580.03422017/03/15 14:20:520B / 32B / 26B
8%20590.03202017/03/03 12:59:520B / 34B / 25B
9kaki590.03202017/03/12 05:07:300B / 33B / 26B
10kotatsugame600.03542017/03/07 17:08:480B / 34B / 26B
11zzo38610.03452017/03/11 15:46:340B / 36B / 25B
12chocobi680.03172017/03/04 00:14:540B / 36B / 32B
13jsl680.03692017/03/09 09:50:100B / 39B / 29B

Haskell _

RankUserSizeTimeDateStatistics
1henkma710.03752017/03/16 14:21:340B / 38B / 31B
2dianne730.03862017/03/15 11:42:190B / 35B / 37B
3lynn740.04812017/03/16 05:25:040B / 39B / 33B
4xnor750.03902017/03/04 14:41:500B / 38B / 34B
5_810.03752017/03/03 10:59:060B / 35B / 43B
6nmh870.04352017/03/09 08:25:200B / ?B / ?B

ObjC _

RankUserSizeTimeDateStatistics
1ludo570.03502017/03/16 18:25:190B / 33B / 24B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1120.20562017/03/06 01:24:230B / 66B / 42B
2teebee1120.20642017/03/06 10:34:390B / 65B / 43B
3Klemmbrett1350.19172017/03/03 19:49:160B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1teebee520.03312017/03/06 11:26:110B / 18B / 34B

sed _

RankUserSizeTimeDateStatistics
1tails600.03262017/03/03 01:09:060B / 20B / 29B
2kimiyuki830.05372017/03/09 01:10:390B / 20B / 57B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails710.30452017/03/07 17:04:310B / 32B / 27B

wake _

RankUserSizeTimeDateStatistics
1tails810.01672017/03/08 10:43:490B / 22B / 57B

R _

RankUserSizeTimeDateStatistics
1ludo910.70242017/03/17 00:24:340B / 47B / 40B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs520.03472017/03/15 12:00:050B / 0B / 52B
2mitchs (alt)680.03442017/03/10 08:54:350B / 0B / 68B
3angel-p57700.03472017/03/09 07:27:280B / ?B / ?B
4kimiyuki700.03602017/03/10 16:24:580B / 0B / 70B

Whitespace _

RankUserSizeTimeDateStatistics
1%201000.05132017/03/03 14:39:570B / 0B / 0B

Befunge _

RankUserSizeTimeDateStatistics
1kaki280.03572017/03/12 17:58:470B / 4B / 23B

GolfScript _

RankUserSizeTimeDateStatistics
1tails150.05742017/03/03 09:48:510B / 3B / 12B

gs2 _

RankUserSizeTimeDateStatistics
1whio130.24522017/03/08 05:52:066B / 4B / 3B
2tails130.25572017/03/14 09:03:355B / 5B / 3B

z80 _

RankUserSizeTimeDateStatistics
1lynn180.11742018/05/28 08:23:5313B / 3B / 2B

Vim _

RankUserSizeTimeDateStatistics
1udioica360.28762017/03/03 13:05:364B / 14B / 17B

Groovy _

RankUserSizeTimeDateStatistics
1teebee542.68732017/03/06 11:03:510B / 32B / 22B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o549.12862017/03/05 16:04:060B / 25B / 27B

Language Ranking_

RankLangUserSizeScore
1gs2whio1310000
2GolfScripttails158666
3z80lynn187222
4Perltails274814
5Befungekaki284642
6Rubyxsot324062
7Vimudioica363611
8Ruby2rotary-o363611
9AWKteebee522500
10Brainfuckmitchs522500
11Scalarotary-o542407
12Groovyteebee542407
13Cnu572280
14JavaScriptFizzyTea572280
15ObjCludo572280
16sedtails602166
17Python3olf632063
18Pythonrolf711830
19Bash (builtins)tails711830
20Haskellhenkma711830
21waketails811604
22Schemekaki851529
23Rludo911428
24Whitespace%201001300
25Common LISPhsu1081203
26Javarotary-o1121160

return to the top page