by@661nos
AC
501ms
for i in range (32): s=input() if s=="0123" or s=="1230" or s=="2301" or s=="3012": print(1) else : print(0)
3012 3012 3012 1032 1230 1032 1032 0321 3012 1230 0123 2301 1230 3210 0321 3210 2103 0321 2301 1230 3012 1230 2103 0123 3012 1032 1032 1032 2103 0321 3012 2301
1 1 1 0 1 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 1 0 0 0 0 0 1 1
13 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc76b9ee48 /* 7 vars */) = 0 14 execve("/bin/cat", ["cat", "-"], 0x7fd1d30bb238 /* 7 vars */) = 0 15 execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x7fd1d30bb250 /* 7 vars */ <unfinished ...> 14 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 15 <... execve resumed>) = 0 15 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=1, si_stime=0} --- 13 +++ exited with 0 +++