Result

AC

Duration

950ms

Code [DL]

while read s;do echo ${s:${s:1:1}-${s:2:1}?4:2:1};done

stdin

274 868
692 938
975 756
655 579
422 336
289 893
828 829
868 894
635 535
611 823
122 774
497 998
965 761
658 553
298 966
798 227
117 774
355 258
559 994
458 755
479 694
566 765
722 885
495 535
165 358
655 542
799 688
942 677
344 445
379 557
599 937
655 553

stdout

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

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffddcc69d00 /* 9 vars */) = 0
13    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5570ae45fd18 /* 9 vars */) = 0
13    +++ exited with 0 +++
12    --- 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/cp", ["cp", "-f", "/volume/CODE", "/opt/jails/bash-busybox/code.bas"...], 0x5570ae45fd68 /* 9 vars */) = 0
14    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-busybox", "-x", "/bin/bash", "/code.bash"], 0x5570afbe21c0 /* 9 vars */) = 0
15    execve("/bin/cat", ["cat", "-"], 0x5570afbe20d8 /* 9 vars */) = 0
15    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    execve("/bin/bash", ["/bin/bash", "/code.bash"], 0x7ffdfbcca0c0 /* 9 vars */) = 0
16    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    execve("/bin/rm", ["rm", "/opt/jails/bash-busybox/code.bas"...], 0x5570ae45fcc8 /* 9 vars */) = 0
17    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    +++ exited with 0 +++