Result

AC

Duration

933ms

Code [DL]

[%bs.raw{|console.log((""+require("fs").readFileSync(0)).replace(/.+/g,x=>x[(x[1]!=x[2])*2+2]))|}]

stdin

525 524
451 631
955 662
433 329
445 528
765 668
899 348
177 197
195 194
215 678
177 771
341 551
788 224
178 178
262 223
995 772
533 937
599 798
353 122
553 516
192 628
173 384
169 439
969 695
879 778
725 557
799 929
352 523
276 965
582 873
399 991
623 321

stdout

5
6
5
3
5
6
9
7
1
6
7
5
8
1
2
7
3
9
1
5
6
3
4
6
7
5
9
5
9
8
9
3

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff2a675760 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x556504a65d18 /* 9 vars */) = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.re"], 0x556504a65d38 /* 9 vars */) = 0
13    +++ exited with 0 +++
11    --- 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("/usr/bin/bsc", ["/usr/bin/bsc", "/tmp/code.re"], 0x556504a65d20 /* 9 vars */) = 0
14    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffd7935bf60 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffd7935bf60 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffd7935bf60 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffd7935bf60 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffd7935bf60 /* 9 vars */) = 0
21    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x55afab54df60 /* 9 vars */) = 0
22    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffd1ae4d870 /* 9 vars */) = 0
22    execve("/usr/lib/node_modules/bs-platform/linux/refmt.exe", ["/usr/lib/node_modules/bs-platfor"..., "--print=binary", "/tmp/code.re"], 0x558f2ff70090 /* 9 vars */) = 0
22    +++ exited with 0 +++
21    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
21    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
19    +++ exited with 0 +++
16    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
15    +++ exited with 0 +++
20    +++ exited with 0 +++
14    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=4, si_stime=0} ---
23    execve("/bin/cat", ["cat", "-"], 0x556504a65d38 /* 9 vars */ <unfinished ...>
24    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x556504a65d48 /* 9 vars */ <unfinished ...>
23    <... execve resumed>)             = 0
24    <... execve resumed>)             = 0
23    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
29    +++ exited with 0 +++
27    +++ exited with 0 +++
28    +++ exited with 0 +++
26    +++ exited with 0 +++
25    +++ exited with 0 +++
30    +++ exited with 0 +++
24    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=2, si_stime=3} ---
31    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x556504a65cf0 /* 9 vars */) = 0
31    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++