Result

AC

Duration

791ms

Code [DL]

(""+require("fs").readFileSync(0)).match(/(.)\1 | ./g).map(x=>console.log(x[1]))

stdin

568 114
915 167
867 114
232 129
576 667
266 621
378 782
774 495
827 671
835 324
175 774
239 416
468 868
188 885
656 789
477 172
593 185
966 968
133 449
488 175
976 663
499 677
642 294
239 839
162 661
799 943
899 117
471 175
571 794
411 116
196 964
738 139

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc94339e10 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55af92bb0d30 /* 7 vars */) = 0
12    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x55af92bb0d40 /* 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 +++
15    +++ exited with 0 +++
16    +++ exited with 0 +++
14    +++ 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=4, si_stime=1} ---
10    +++ exited with 0 +++