Result

WA

Duration

524ms

Code [DL]

s = [str(input()) for i in range(32)]
for i in range(32):
    print(0 +int(('01' or '23' in s[i])))

stdin

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

stdout

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffeb32dab58 /* 7 vars */) = 0
14    execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x7f7459d93250 /* 7 vars */ <unfinished ...>
13    execve("/bin/cat", ["cat", "-"], 0x7f7459d93238 /* 7 vars */ <unfinished ...>
14    <... execve resumed>)             = 0
13    <... 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=1, si_stime=0} ---
12    +++ exited with 0 +++