Result

WA

Duration

604ms

Code [DL]

$<.map{p _1*2=~/01/?1:0}

stdin

2301
0321
0321
3210
1230
3210
2301
2103
1230
1230
2103
1230
0123
1230
3012
1032
3012
3012
3210
1032
0123
0321
3210
3012
2103
1230
1230
1032
0321
3210
2301
0321

stdout

1
0
0
0
0
0
1
0
0
0
0
0
1
0
1
0
1
1
0
0
1
0
0
1
0
0
0
0
0
0
1
0

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd2d19cd78 /* 9 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7f70a1b97240 /* 9 vars */ <unfinished ...>
14    execve("/usr/local/ruby-latest/bin/ruby", ["/usr/local/ruby-latest/bin/ruby", "/volume/CODE"], 0x7f70a1b97260 /* 9 vars */ <unfinished ...>
13    <... execve resumed>)             = 0
14    <... execve resumed>)             = 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=4, si_stime=2} ---
12    +++ exited with 0 +++