Result

AC

Duration

902ms

Code [DL]

read a b;echo $[b%110<9%b?b/100:a%10];. $0

stdin

829 237
519 799
788 213
377 373
532 329
534 416
331 612
762 667
361 665
867 768
629 924
681 661
855 643
761 747
844 642
688 884
415 551
457 523
491 697
972 224
931 411
445 813
277 775
183 991
633 774
766 551
482 825
799 959
525 728
882 297
911 139
812 986

stdout

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

stderr

/code.bash: line 1: b%110<9%b?b/100:a%10: division by 0 (error token is "b?b/100:a%10")

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc9deabb40 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x555b2eb78d18 /* 9 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} ---
12    execve("/bin/cp", ["cp", "-f", "/volume/CODE", "/opt/jails/bash-pure/code.bash"], 0x555b2eb78d58 /* 9 vars */) = 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=0, si_stime=0} ---
13    execve("/bin/cat", ["cat", "-"], 0x555b2f8f10d8 /* 9 vars */) = 0
14    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-pure", "-x", "/bin/bash", "/code.bash"], 0x555b2f8f11c0 /* 9 vars */) = 0
13    +++ exited with 0 +++
10    --- 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/bash", ["/bin/bash", "/code.bash"], 0x7ffe49c7cf20 /* 9 vars */) = 0
14    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=1, si_stime=1} ---
15    execve("/bin/rm", ["rm", "/opt/jails/bash-pure/code.bash"], 0x555b2eb78cb8 /* 9 vars */) = 0
15    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++