Result

AC

Duration

1377ms

Code [DL]

[%bs.raw{|console.log((""+require("fs").readFileSync("/dev/stdin")).split("\n").map(x=>x[1]==x[2]?x[2]:x[4]).join().replace(/[^0-9]/g, ''))|}]

stdin

317 573
499 697
125 519
422 334
458 954
277 857
951 477
692 159
776 763
499 916
745 157
144 447
512 127
342 641
219 995
256 332
977 773
292 313
435 112
534 112
633 139
677 462
634 339
169 643
494 995
489 848
731 114
597 746
878 873
363 368
933 365
744 881

stdout

59529741791416937311373698178334

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd6e491fc0 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x564ac21acd18 /* 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"], 0x564ac21acd38 /* 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"], 0x564ac21acd20 /* 9 vars */) = 0
13    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fffadc45ff0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fffadc45ff0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fffadc45ff0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fffadc45ff0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fffadc45ff0 /* 9 vars */) = 0
20    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x55a897deff60 /* 9 vars */) = 0
21    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffd04a265d0 /* 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"], 0x55e6a139d090 /* 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} ---
17    +++ exited with 0 +++
16    +++ exited with 0 +++
18    +++ 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=6, si_stime=2} ---
22    execve("/bin/cat", ["cat", "-"], 0x564ac21acd38 /* 9 vars */) = 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} ---
23    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x564ac21acd48 /* 9 vars */) = 0
28    +++ exited with 0 +++
27    +++ exited with 0 +++
26    +++ 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=6, si_stime=1} ---
30    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x564ac21accf0 /* 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 +++