Result

WA

Duration

567ms

Code [DL]

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

stdin

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

stdout

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

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe16d3f9d8 /* 7 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7fa740b09230 /* 7 vars */ <unfinished ...>
14    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x7fa740b09240 /* 7 vars */ <unfinished ...>
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    <... execve resumed>)             = 0
18    +++ exited with 0 +++
17    +++ exited with 0 +++
19    +++ exited with 0 +++
16    +++ exited with 0 +++
15    +++ 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=3, si_stime=1} ---
12    +++ exited with 0 +++