Result

AC

Duration

927ms

Code [DL]

io.read"a":gsub(" (.)%1","%1 "):gsub(". ",print)

stdin

671 251
511 128
442 883
859 995
566 669
362 662
738 416
879 975
154 443
314 418
144 425
813 358
799 766
411 718
942 443
962 568
776 764
544 448
688 581
945 452
974 765
489 194
284 665
665 955
899 622
955 334
259 334
369 949
426 274
257 136
958 651
477 884

stdout

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd83454310 /* 7 vars */) = 0
13    execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x56190df1fd40 /* 7 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x56190df1fd30 /* 7 vars */) = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++