Result

AC

Duration

872ms

Code [DL]

p()(read a b
echo $[((b/=10)%11?a:b)%10%a]
p)
p

stdin

811 882
511 534
284 877
338 838
122 228
293 938
411 115
199 599
696 928
119 994
633 649
239 456
595 993
822 992
198 884
771 373
536 562
264 488
165 868
946 115
824 741
482 827
432 237
611 917
859 961
534 882
982 881
366 675
959 391
186 825
442 386
299 942

stdout

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

stderr

/code.bash: line 2: ((b/=10)%11?a:b)%10%a: division by 0 (error token is "a")

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd2ba0e320 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55d7020bed18 /* 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/bash-pure/code.bash"], 0x55d7020bed58 /* 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", "-"], 0x55d703a9f0d8 /* 9 vars */) = 0
15    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-pure", "-x", "/bin/bash", "/code.bash"], 0x55d703a9f1c0 /* 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/bash", ["/bin/bash", "/code.bash"], 0x7ffce285aa00 /* 9 vars */) = 0
48    +++ exited with 1 +++
47    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=48, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
47    +++ exited with 1 +++
46    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=47, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
46    +++ exited with 1 +++
45    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=46, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
45    +++ exited with 1 +++
44    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=45, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
44    +++ exited with 1 +++
43    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=44, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
43    +++ exited with 1 +++
42    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=43, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
42    +++ exited with 1 +++
41    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=42, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
41    +++ exited with 1 +++
40    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=41, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
40    +++ exited with 1 +++
39    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=40, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
39    +++ exited with 1 +++
38    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=39, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
38    +++ exited with 1 +++
37    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=38, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
37    +++ exited with 1 +++
36    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=37, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
36    +++ exited with 1 +++
35    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=36, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
35    +++ exited with 1 +++
34    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=35, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
34    +++ exited with 1 +++
33    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=34, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
33    +++ exited with 1 +++
32    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=33, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
32    +++ exited with 1 +++
31    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=32, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
31    +++ exited with 1 +++
30    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
30    +++ exited with 1 +++
29    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
29    +++ exited with 1 +++
28    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=29, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
28    +++ exited with 1 +++
27    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=28, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
27    +++ exited with 1 +++
26    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
26    +++ exited with 1 +++
25    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
25    +++ exited with 1 +++
24    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
24    +++ exited with 1 +++
23    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
23    +++ exited with 1 +++
22    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
22    +++ exited with 1 +++
21    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
21    +++ exited with 1 +++
20    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
20    +++ exited with 1 +++
19    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
19    +++ exited with 1 +++
18    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
18    +++ exited with 1 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
17    +++ exited with 1 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
16    +++ exited with 1 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
15    +++ exited with 1 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=1, si_utime=0, si_stime=1} ---
49    execve("/bin/rm", ["rm", "/opt/jails/bash-pure/code.bash"], 0x55d7020becb8 /* 9 vars */) = 0
49    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=49, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++