Result

AC

Duration

843ms

Code [DL]

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

stdin

544 443
677 279
916 873
866 619
177 449
877 435
285 824
746 644
357 311
451 558
152 756
733 229
961 141
343 413
713 133
964 669
844 641
724 447
995 511
858 959
382 227
895 924
627 678
446 468
418 665
121 831
199 868
465 564
272 443
699 991
689 492
955 593

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff05dafcd0 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55c872f6cd30 /* 7 vars */) = 0
12    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x55c872f6cd40 /* 7 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} ---
14    +++ exited with 0 +++
15    +++ exited with 0 +++
17    +++ exited with 0 +++
16    +++ exited with 0 +++
13    +++ exited with 0 +++
18    +++ exited with 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=3, si_stime=1} ---
10    +++ exited with 0 +++