Result

AC

Duration

1163ms

Code [DL]

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

stdin

849 338
938 732
615 519
533 751
268 688
287 694
964 661
977 119
588 835
377 779
944 342
717 736
946 647
551 517
434 533
211 998
669 191
767 797
641 112
533 124
755 565
515 826
491 993
875 858
152 231
427 772
734 889
544 449
139 319
537 636
959 519
811 816

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe1d7a8990 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55b315d69d18 /* 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"], 0x55b315d69d38 /* 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"], 0x55b315d69d20 /* 9 vars */) = 0
13    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc5a7b4f80 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc5a7b4f80 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc5a7b4f80 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc5a7b4f80 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc5a7b4f80 /* 9 vars */) = 0
20    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x55608814df60 /* 9 vars */) = 0
21    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffdf6928410 /* 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"], 0x562755372090 /* 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} ---
15    +++ exited with 0 +++
17    +++ exited with 0 +++
14    +++ exited with 0 +++
16    +++ exited with 0 +++
18    +++ 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=5, si_stime=1} ---
22    execve("/bin/cat", ["cat", "-"], 0x55b315d69d38 /* 9 vars */ <unfinished ...>
23    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x55b315d69d48 /* 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 +++
26    +++ exited with 0 +++
27    +++ exited with 0 +++
25    +++ 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"], 0x55b315d69cf0 /* 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 +++