Result

AC

Duration

1019ms

Code [DL]

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

stdin

567 442
657 773
881 698
653 347
182 421
491 137
766 229
266 636
526 842
319 997
677 779
865 156
931 913
651 516
626 862
313 315
433 571
977 857
495 598
434 357
156 856
166 625
799 693
859 856
761 669
911 113
943 663
467 669
474 744
988 687
711 556
587 859

stdout

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

stderr

strace

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