Result

AC

Duration

1390ms

Code [DL]

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

stdin

919 835
232 115
877 675
639 795
364 446
544 661
159 995
838 836
437 384
944 427
619 958
843 439
966 669
871 611
144 576
676 693
944 316
746 443
543 543
328 924
598 616
933 331
722 262
586 831
718 162
172 994
199 116
225 221
466 161
277 634
453 532
534 438

stdout

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

stderr

TypeError: (require(...).readFileSync(...) + 0).match(...).map(...) is not a function
    at eval (eval at <anonymous> (/usr/lib/node_modules/@wenyanlang/cli/index.min.js:2102:17), <anonymous>:1:92)
    at /usr/lib/node_modules/@wenyanlang/cli/index.min.js:2102:17
    at Object.evalCompiled (/usr/lib/node_modules/@wenyanlang/cli/index.min.js:2111:7)
    at exec (/usr/lib/node_modules/@wenyanlang/cli/index.min.js:2390:14)
    at Object.<anonymous> (/usr/lib/node_modules/@wenyanlang/cli/index.min.js:2250:42)
    at step (/usr/lib/node_modules/@wenyanlang/cli/index.min.js:2162:23)
    at Object.next (/usr/lib/node_modules/@wenyanlang/cli/index.min.js:2143:53)
    at /usr/lib/node_modules/@wenyanlang/cli/index.min.js:2137:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/lib/node_modules/@wenyanlang/cli/index.min.js:2133:12)

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcbe356410 /* 9 vars */) = 0
13    execve("/usr/bin/wenyan", ["/usr/bin/wenyan", "/volume/CODE"], 0x558c2f9e8d40 /* 9 vars */ <unfinished ...>
12    execve("/bin/cat", ["cat", "-"], 0x558c2f9e8d30 /* 9 vars */ <unfinished ...>
13    <... execve resumed>)             = 0
12    <... execve resumed>)             = 0
13    execve("/bin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffeb4041ef0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/sbin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffeb4041ef0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/bin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffeb4041ef0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/sbin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffeb4041ef0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/bin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffeb4041ef0 /* 9 vars */ <unfinished ...>
12    +++ exited with 0 +++
13    <... execve resumed>)             = 0
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    +++ exited with 0 +++
18    +++ exited with 0 +++
15    +++ exited with 0 +++
16    +++ exited with 0 +++
14    +++ exited with 0 +++
19    +++ exited with 0 +++
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=11, si_stime=3} ---
11    +++ exited with 0 +++