Result

AC

Duration

831ms

Code [DL]

while read a b;do echo $[b%110<9?b/100:a%10];done

stdin

686 292
633 259
431 334
474 677
195 351
144 446
295 559
451 448
822 726
824 478
897 887
153 355
721 266
515 155
681 185
288 384
255 771
837 321
423 334
179 422
827 274
377 712
478 577
627 196
359 551
443 318
293 739
155 583
922 894
699 114
799 992
593 496

stdout

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffff00f1850 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x561c5798ed18 /* 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"], 0x561c5798ed58 /* 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", "-"], 0x561c5847d0d8 /* 9 vars */) = 0
15    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-pure", "-x", "/bin/bash", "/code.bash"], 0x561c5847d1c0 /* 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"], 0x7ffea5227f30 /* 9 vars */) = 0
15    +++ exited with 0 +++
11    --- 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/rm", ["rm", "/opt/jails/bash-pure/code.bash"], 0x561c5798ecb8 /* 9 vars */) = 0
16    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++