Result

AC

Duration

926ms

Code [DL]

main=interact$(>>=(\x->(++" ").show.succ.length.filter((>'_').snd).takeWhile(/=('_','_'))$zip x$tail x)).lines

stdin

||||||_|_|
|_||_|||__
|_|__|_||_
||_||||__|
|___|__|||
||||__||||
|_||_||_||
|||___|_|_
||||___|__
|_|||_|||_
|_|__|_|||
|__||__|||
|__||_____
|____|||__
|__|____|_
||||_|_|_|
||_||__|__
|_||______
||_____||_
||___|_|||
|___|_||_|
||__|_|__|
|||_|||_||
||__|||_||
||_|||||__
|_|_|__|||
|___||||__
|__||||_||
||__||_|_|
|_||_||_|_

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd4830eaa0 /* 7 vars */) = 0
12    execve("/usr/bin/runghc", ["/usr/bin/runghc", "/volume/CODE"], 0x55b58911fd40 /* 7 vars */) = 0
12    execve("/usr/lib/ghc-8.8.3/bin/runghc", ["/usr/lib/ghc-8.8.3/bin/runghc", "-f", "/usr/bin/ghc-8.8.3", "/volume/CODE"], 0x562995620168 /* 7 vars */ <unfinished ...>
11    execve("/bin/cat", ["cat", "-"], 0x55b58911fd30 /* 7 vars */ <unfinished ...>
12    <... execve resumed>)             = 0
11    <... execve resumed>)             = 0
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    execve("/usr/bin/ghc-8.8.3", ["/usr/bin/ghc-8.8.3", "-ignore-dot-ghci", "-x", "hs", "-e", ":set prog \"/volume/CODE\"", "-e", ":main []", "/volume/CODE"], 0x7ffeb774f3e0 /* 7 vars */) = 0
12    execve("/usr/lib/ghc-8.8.3/bin/ghc", ["/usr/lib/ghc-8.8.3/bin/ghc", "-B/usr/lib/ghc-8.8.3", "-ignore-dot-ghci", "-x", "hs", "-e", ":set prog \"/volume/CODE\"", "-e", ":main []", "/volume/CODE"], 0x556eea22a200 /* 7 vars */) = 0
17    execve("/bin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7ffe7a609370 /* 7 vars */) = -1 ENOENT (No such file or directory)
17    execve("/usr/local/sbin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7ffe7a609370 /* 7 vars */) = -1 ENOENT (No such file or directory)
17    execve("/usr/local/bin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7ffe7a609370 /* 7 vars */) = -1 ENOENT (No such file or directory)
17    execve("/usr/sbin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7ffe7a609370 /* 7 vars */) = -1 ENOENT (No such file or directory)
17    execve("/usr/bin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7ffe7a609370 /* 7 vars */) = 0
17    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    +++ exited with 0 +++
15    +++ exited with 0 +++
16    +++ exited with 0 +++
18    +++ exited with 0 +++
13    +++ exited with 0 +++
12    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=21, si_stime=4} ---
10    +++ exited with 0 +++