Result

AC

Duration

1037ms

Code [DL]

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

stdin

981 811
596 965
446 644
728 817
156 936
657 351
594 472
327 229
194 224
244 123
474 765
911 521
699 937
733 838
449 461
144 448
233 779
671 911
533 357
438 584
344 772
877 779
883 239
653 141
375 554
842 449
412 993
873 974
568 885
396 192
742 242
266 766

stdout

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

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

13    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc1cc651a0 /* 7 vars */) = 0
14    execve("/bin/cat", ["cat", "-"], 0x55d58b974d30 /* 7 vars */ <unfinished ...>
15    execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x55d58b974d40 /* 7 vars */) = 0
14    <... execve resumed>)             = 0
14    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
15    +++ exited with 1 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
13    +++ exited with 1 +++