Result

AC

Duration

560ms

Code [DL]

(""+require('fs').readFileSync(0)).split`
`.map((a,i)=>i<32&&console.log(((a[0]-a[1])&2)/2))

stdin

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

stdout

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

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcc4c5bc68 /* 7 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7ff284076230 /* 7 vars */ <unfinished ...>
14    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x7ff284076240 /* 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} ---
17    +++ exited with 0 +++
19    +++ exited with 0 +++
15    +++ exited with 0 +++
18    +++ exited with 0 +++
16    +++ exited with 0 +++
20    +++ exited with 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=0} ---
12    +++ exited with 0 +++