Result

WA

Duration

816ms

Code [DL]

int i;
for(i = 0; i < 32; i = i+1){
a = io.read("*n");
b = io.read("*n");
if a % 10 == a % 100 - a % 10
then io.write (a%10);
else io.write (b/100);
end
}

stdin

676 679
698 886
364 458
937 557
599 934
877 776
165 965
655 216
977 264
638 885
676 772
488 337
466 168
313 842
116 161
255 567
233 338
915 642
897 977
487 789
233 556
924 926
913 432
839 361
595 158
148 427
928 995
338 334
597 732
946 525
711 212
518 117

stdout

stderr

/usr/bin/lua5.3: /volume/CODE:1: syntax error near 'i'

strace

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