Result

AC

Duration

616ms

Code [DL]

30.times{p gets.split("__")[0].count('|')}

stdin

|____|||||
|_|||||||_
|_|_|||_|_
|_||_||_|_
|_|_|____|
|__|___|||
|_||_||__|
|_|____|_|
|__||_|_||
|||__||__|
|___|_|___
|_|__||_|_
|||___|||_
||_____|__
||_|||__|_
|_______|_
|_|___|__|
|__|___||_
||____||__
||||_|||__
|||____|||
||__|____|
||||__||||
|||_|_|___
|__|__|___
|_||_||___
|_||||_||_
|||__||_||
|____|||__
|||____|__

stdout

1
8
6
6
3
1
5
2
1
3
1
2
3
2
5
1
2
1
2
7
3
2
4
5
1
5
7
3
1
3

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fffdb9d9b58 /* 9 vars */) = 0
14    execve("/usr/local/ruby-latest/bin/ruby", ["/usr/local/ruby-latest/bin/ruby", "/volume/CODE"], 0x7f20659bc260 /* 9 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7f20659bc240 /* 9 vars */) = 0
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=6, si_stime=1} ---
12    +++ exited with 0 +++