Result

AC

Duration

1179ms

Code [DL]

施(require("fs").readFileSync(0)+0).replace(/(.?)\1 ./g,x=>console.log(x[1]))

stdin

441 275
791 553
268 263
146 625
844 884
977 551
495 596
846 947
899 998
844 249
144 517
542 327
244 433
433 679
549 997
588 285
436 681
374 228
272 729
117 116
154 397
723 283
984 487
971 773
849 471
525 914
354 473
196 961
822 258
651 116
722 221
118 987

stdout

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

stderr

TypeError: (require(...).readFileSync(...) + 0).replace(...) is not a function
    at eval (eval at <anonymous> (/usr/lib/node_modules/@wenyanlang/cli/index.min.js:2102:17), <anonymous>:1:88)
    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"], 0x7ffe8f903660 /* 9 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x55e8f6a39d30 /* 9 vars */) = 0
12    +++ exited with 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} ---
13    execve("/usr/bin/wenyan", ["/usr/bin/wenyan", "/volume/CODE"], 0x55e8f6a39d40 /* 9 vars */) = 0
13    execve("/bin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffd7742cb60 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/sbin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffd7742cb60 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/bin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffd7742cb60 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/sbin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffd7742cb60 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/bin/node", ["node", "/usr/bin/wenyan", "/volume/CODE"], 0x7ffd7742cb60 /* 9 vars */) = 0
17    +++ exited with 0 +++
15    +++ exited with 0 +++
18    +++ 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=18, si_stime=1} ---
11    +++ exited with 0 +++