Result

WA

Duration

977ms

Code [DL]

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

stdin

399 185
993 415
845 548
873 372
522 326
313 221
724 488
928 225
297 423
791 117
493 299
342 642
511 436
322 123
877 772
723 239
221 214
899 116
312 422
711 156
712 245
132 662
655 578
234 387
791 699
433 778
832 827
958 559
694 364
744 442
238 377
758 884

stdout

9
3
5
3
2
2
4
2
7
1
3
2
1
2
7
3
1
1
2
1
2
6
5
4
1
7
2
8
4
4
8
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"], 0x7ffe187b3ee0 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x558ca5a40d18 /* 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"], 0x558ca5a40d58 /* 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", "-"], 0x558ca5b640d8 /* 9 vars */) = 0
14    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-pure", "-x", "/bin/bash", "/code.bash"], 0x558ca5b641c0 /* 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"], 0x7ffd80ad8d90 /* 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=2} ---
15    execve("/bin/rm", ["rm", "/opt/jails/bash-pure/code.bash"], 0x558ca5a40cb8 /* 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 +++