Result

AC

Duration

898ms

Code [DL]

while read -n1 _
read -n1 b
[ $b = (read -n1) ]&&echo $b||read -n2
read _
end

stdin

119 912
166 522
791 498
644 426
844 766
932 327
811 616
455 552
238 696
792 224
992 668
998 689
382 796
631 224
329 962
544 446
533 327
155 119
646 672
984 883
671 813
584 817
411 665
235 943
279 476
465 596
583 882
436 349
377 972
767 765
363 339
461 618

stdout

 96
 44
4
 31
5
 6 2 6 6 7 2 94
3
5
 6 8 8 81
 9 4 5 8 37
 7 3 6

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdee1ca8e0 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x557b05c35d18 /* 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("/bin/cp", ["cp", "-f", "/volume/CODE", "/opt/jails/fish-shell-pure/code."...], 0x557b05c35d68 /* 9 vars */) = 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=0, si_stime=0} ---
14    execve("/bin/cat", ["cat", "-"], 0x557b05f770e0 /* 9 vars */) = 0
15    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/fish-shell-pure", "-x", "/bin/fish", "/code.fish"], 0x557b05f771b0 /* 9 vars */) = 0
14    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
15    execve("/bin/fish", ["/bin/fish", "/code.fish"], 0x7ffe0838efc0 /* 9 vars */) = 0
16    +++ exited with 0 +++
15    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    execve("/bin/rm", ["rm", "/opt/jails/fish-shell-pure/code."...], 0x557b05c35cc8 /* 9 vars */) = 0
17    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++