Result

AC

Duration

915ms

Code [DL]

::x::a,b,c=io.read("*n",2,3)print(a%100%11==0 and a%10 or b)goto x

stdin

633 733
855 825
797 746
155 558
926 252
845 373
424 978
866 753
722 225
288 986
661 663
154 441
157 516
186 862
632 753
171 714
532 664
673 834
962 447
838 835
881 378
228 824
244 419
135 833
299 665
766 653
382 986
386 262
567 792
511 558
292 991
182 223

stdout

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

stderr

/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 ?

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffee3417b40 /* 7 vars */) = 0
12    execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x564de5d04d40 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x564de5d04d30 /* 7 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    +++ 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 +++