Result

WA

Duration

877ms

Code [DL]

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

stdin

633 335
829 925
339 941
115 355
966 421
233 664
825 536
298 936
463 864
644 749
133 216
296 368
479 782
995 998
369 699
688 882
877 725
771 447
831 316
189 997
963 559
114 112
445 551
656 653
721 622
322 213
588 189
588 996
471 491
846 448
693 765
788 951

stdout

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

stderr

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

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcffbc7c10 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x56224578cd18 /* 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"], 0x56224578cd58 /* 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", "-"], 0x5622475e70d8 /* 9 vars */ <unfinished ...>
14    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-pure", "-x", "/bin/bash", "/code.bash"], 0x5622475e71c0 /* 9 vars */ <unfinished ...>
13    <... execve resumed>)             = 0
14    <... execve resumed>)             = 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"], 0x7fffba7457b0 /* 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=0, si_stime=0} ---
15    execve("/bin/rm", ["rm", "/opt/jails/bash-pure/code.bash"], 0x56224578ccb8 /* 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 +++