Vertical Indent

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

Indent vertically the nested parentheses.
-- tails

Options

exec is denied

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

Sample input:_

((()(()(((())))(())((()(()()())())(())(()()))()())(())(())((())()(()(()))(()))))
(()(())(()((()(()()))())()()())(())()((()))()(()())()(())(()(())())((()))(()()))
((()(())())()((())())()()(())()(()())()(()()()(()()(()()))()()((())(()())())()))
((())()(()(()))()()(()(()())()(()((()()))(()()()))(())((()))((())()())(()()())))
(()(())(()()()(()()((()))(()))(()())(()((()(())())(()())()((())()))()(()))()()))
((((())()))(()()((())((()))()(())(((()()))(()))()(()((())))())((())())()((()))))
(()(())()(()()(((()))(()()(()))()(()())(()(())())()(((()))())((())())(()))(())))
(()()((())()())((())()(()()()((()(()(()()))(()()))))()()()(()(()())((()))(()))))
(()()(()(()(())))(()())()((()(()()(()))()()((())()()))((()())()()(()()))(())()))
((((()))((())()))(())(()((()))(((()())(())))()(())()(((()))())(())(()())()(())))

Sample output:

(                                                                              )
 (                                                                            )
  ()(                                            )(  )(  )(                  )
     ()(      )(  )(                        )()()  ()  ()  (  )()(      )(  )
        (    )  ()  (            )(  )(    )                ()    ()(  )  ()
         (  )        ()(      )()  ()  ()()                          ()
          ()            ()()()
(                                                                              )
 ()(  )(                      )(  )()(    )()(    )()(  )(        )(    )(    )
    ()  ()(            )()()()  ()    (  )    ()()    ()  ()(  )()  (  )  ()()
           (        )()                ()                    ()      ()
            ()(    )
               ()()
(                                                                              )
 (        )()(      )()()(  )()(    )()(                                      )
  ()(  )()    (  )()      ()    ()()    ()()()(          )()()(            )()
     ()        ()                              ()()(    )      (  )(    )()
                                                    ()()        ()  ()()
(                                                                              )
 (  )()(      )()()(                                                          )
  ()    ()(  )      ()(    )()(                  )(  )(    )(        )(      )
           ()          ()()    ()(      )(      )  ()  (  )  (  )()()  ()()()
                                  (    )  ()()()        ()    ()
                                   ()()
(                                                                              )
 ()(  )(                                                                      )
    ()  ()()()(              )(    )(                                    )()()
               ()()(    )(  )  ()()  ()(                          )()(  )
                    (  )  ()            (        )(    )()(      )    ()
                     ()                  ()(  )()  ()()    (  )()
                                            ()              ()
(                                                                              )
 (        )(                                                                  )
  (      )  ()()(                                            )(      )()(    )
   (  )()        (  )(    )()(  )(            )()(        )()  (  )()    (  )
    ()            ()  (  )    ()  (      )(  )    ()(    )      ()        ()
                       ()          (    )  ()        (  )
                                    ()()              ()
(                                                                              )
 ()(  )()(                                                                    )
    ()    ()()(                                                          )(  )
               (    )(        )()(    )(        )()(        )(      )(  )  ()
                (  )  ()()(  )    ()()  ()(  )()    (    )()  (  )()  ()
                 ()        ()              ()        (  )      ()
                                                      ()
(                                                                              )
 ()()(        )(                                                              )
      (  )()()  (  )()(                            )()()()(                  )
       ()        ()    ()()()(                    )        ()(    )(    )(  )
                              (                  )            ()()  (  )  ()
                               ()(        )(    )                    ()
                                  ()(    )  ()()
                                     ()()
(                                                                              )
 ()()(          )(    )()(                                                    )
      ()(      )  ()()    (                          )(                )(  )()
         ()(  )            ()(        )()()(        )  (    )()()(    )  ()
            ()                ()()(  )      (  )()()    ()()      ()()
                                   ()        ()
(                                                                              )
 (              )(  )(                                                        )
  (    )(      )  ()  ()(    )(            )()(  )()(        )(  )(    )()(  )
   (  )  (  )()          (  )  (          )    ()    (    )()  ()  ()()    ()
    ()    ()              ()    (    )(  )            (  )
                                 ()()  ()              ()

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1olf770.01332015/07/09 13:36:440B / 34B / 41B
2ludo770.01322015/07/12 05:46:350B / 33B / 42B
3Histocrat790.04142015/07/07 07:17:430B / 33B / 44B
4gmk850.01262015/07/05 20:38:450B / 35B / 43B

Perl _

RankUserSizeTimeDateStatistics
1teebee640.01262015/07/02 08:55:540B / 24B / 39B
2tails640.02602015/07/02 13:48:230B / 20B / 39B
3brx760.02062015/07/06 20:44:551B / 24B / 49B
4jonathan camacho2090.01402015/07/03 03:12:460B / 78B / 125B

Python _

RankUserSizeTimeDateStatistics
1llhuii1110.04152015/07/05 03:19:330B / ?B / ?B
2xsot1150.04362015/07/05 00:19:330B / 56B / 53B
3hallvabo1160.04682015/07/06 06:52:070B / 58B / 45B
4twobit1160.03072015/07/13 20:05:210B / ?B / ?B
5xnor1180.03182015/07/13 15:33:260B / ?B / ?B
6rolf1200.05192015/07/02 03:20:570B / 60B / 53B
7malkovich1290.04022015/07/08 07:21:180B / ?B / ?B
8recursive1310.04322015/07/07 04:22:400B / 60B / 50B

Python3 _

RankUserSizeTimeDateStatistics
1llhuii1060.07542015/07/05 12:05:290B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1kaki2040.05532015/07/13 20:31:360B / 100B / 96B

Common LISP _

RankUserSizeTimeDateStatistics
1youz1790.08162015/07/08 12:58:240B / 94B / 74B
2rolf5370.04972015/07/02 23:20:260B / 276B / 140B

JavaScript _

RankUserSizeTimeDateStatistics
10mg1270.06592015/07/11 14:49:540B / 57B / 66B

C _

RankUserSizeTimeDateStatistics
1llhuii1060.01092015/07/12 13:23:310B / ?B / ?B
2lpha1180.01082015/07/10 05:42:330B / 56B / 62B

ObjC _

RankUserSizeTimeDateStatistics
1llhuii1060.01332015/07/15 00:00:320B / 53B / 53B

AWK _

RankUserSizeTimeDateStatistics
1llhuii960.01922015/07/15 00:10:210B / 43B / 51B

sed _

RankUserSizeTimeDateStatistics
1tails1080.03772015/07/02 12:33:470B / 17B / 71B
2mitchs (tails)1070.05022015/12/03 05:23:330B / 16B / 73B

Bash _

RankUserSizeTimeDateStatistics
1llhuii990.02082015/07/15 00:10:060B / 45B / 50B

Zsh _

RankUserSizeTimeDateStatistics
1llhuii990.04172015/07/15 00:30:000B / 45B / 50B

Fish _

RankUserSizeTimeDateStatistics
1llhuii990.04962015/07/15 00:29:500B / 45B / 50B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii970.02612015/07/15 00:10:460B / 43B / 52B

R _

RankUserSizeTimeDateStatistics
1ludo1900.19032015/07/14 23:39:260B / 105B / 73B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs2000.06312015/07/14 17:25:280B / 0B / 200B
2mitchs1920.04832015/07/15 05:47:520B / 0B / 192B

Whitespace _

RankUserSizeTimeDateStatistics
1%203460.56252015/07/14 12:22:300B / 0B / 0B

Befunge _

RankUserSizeTimeDateStatistics
1tails1280.06462015/07/13 18:02:241B / 58B / 60B
2kaki1460.05382015/07/12 16:13:580B / 75B / 61B
3%201630.08552015/07/09 15:42:090B / 85B / 70B
4gmk2290.09282015/07/14 22:38:270B / ?B / ?B
5%20(tails)1200.05382015/07/15 14:57:011B / 56B / 54B

GolfScript _

RankUserSizeTimeDateStatistics
1tails560.19852015/07/01 14:29:380B / 15B / 40B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs290.19992015/07/03 12:03:2413B / 7B / 6B
2whio(mitchs)270.18962015/10/17 07:07:0412B / 6B / 6B

Vim _

RankUserSizeTimeDateStatistics
1udioica530.12412016/12/02 11:45:090B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1gs2whio(mitchs)2710000
2Vimudioica535094
3GolfScripttails564821
4Perlteebee644218
5Rubyolf773506
6AWKllhuii962812
7xgawkllhuii972783
8Bashllhuii992727
9Fishllhuii992727
10Zshllhuii992727
11Python3llhuii1062547
12Cllhuii1062547
13ObjCllhuii1062547
14sedmitchs (tails)1072523
15Pythonllhuii1112432
16Befunge%20(tails)1202250
17JavaScript0mg1272125
18Common LISPyouz1791508
19Rludo1901421
20Brainfuckmitchs1921406
21Schemekaki2041323
22Whitespace%20346780

return top