by@shell_mug
AC
902ms
::x::a,b=io.read("*n","*n")print(a%100%11==0 and a%10 or b//100)goto x
854 556 948 441 422 221 165 675 875 754 699 196 255 544 195 597 546 435 299 998 929 293 838 223 712 228 521 171 254 488 866 537 966 689 549 834 188 318 721 678 655 664 358 168 324 629 623 937 944 557 294 573 733 738 285 288 173 373 818 686 448 331 779 995
5 4 2 6 7 9 5 5 4 9 2 2 2 1 4 6 6 8 8 6 5 1 6 9 4 5 3 2 3 6 3 9
/usr/bin/lua5.3: /volume/CODE:1: attempt to perform arithmetic on a nil value (global 'a') stack traceback: /volume/CODE:1: in main chunk [C]: in ?
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffee177ecd0 /* 7 vars */) = 0 11 execve("/bin/cat", ["cat", "-"], 0x55e24acaed30 /* 7 vars */ <unfinished ...> 12 execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x55e24acaed40 /* 7 vars */ <unfinished ...> 11 <... execve resumed>) = 0 12 <... execve resumed>) = 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 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 10 +++ exited with 1 +++