Result

WA

Duration

517ms

Code [DL]

s =[input() for i in range(32)]
for i in range(32):print(+('01' or '30' in s[i])

stdin

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

stdout

stderr

  File "/volume/CODE", line 3
    
                                                    ^
SyntaxError: unexpected EOF while parsing

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdc42413c8 /* 7 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7fc37407b238 /* 7 vars */ <unfinished ...>
14    execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x7fc37407b250 /* 7 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 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=1, si_stime=0} ---
12    +++ exited with 1 +++