Result

AC

Duration

816ms

Code [DL]

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

stdin

922 313
417 719
326 223
994 451
914 911
484 842
594 996
466 668
495 199
571 315
298 966
139 384
422 254
533 732
655 527
527 779
266 884
169 993
164 642
677 227
699 998
994 583
172 331
744 385
162 263
659 193
646 472
614 668
648 643
599 494
648 824
195 631

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fffc361a3b0 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x563871098d30 /* 7 vars */) = 0
12    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x563871098d40 /* 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} ---
17    +++ exited with 0 +++
16    +++ exited with 0 +++
13    +++ exited with 0 +++
14    +++ exited with 0 +++
15    +++ 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=2} ---
10    +++ exited with 0 +++