Result

AC

Duration

733ms

Code [DL]

::x::z,a,b=io.read(1,2,2,3)print(a%11==0 and~~a%10 or b)goto x

stdin

511 134
692 957
652 252
775 579
454 544
715 415
299 695
926 891
939 887
536 661
633 143
344 435
622 229
781 617
396 636
919 993
366 878
164 669
321 329
268 549
344 995
436 997
948 486
512 619
652 269
519 157
133 339
265 355
761 661
188 289
644 884
412 524

stdout

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

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"], 0x7fff04a373b0 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x555b30a46d30 /* 7 vars */) = 0
12    execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x555b30a46d40 /* 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 +++