Result

AC

Duration

756ms

Code [DL]

d=io.read
f=d(51)l,c=d'*a':gsub(' *\n','')print(f:rep(c)..l..f.rep(0,f:find"T"-#l))

stdin

            T                                     
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
     K                                            

stdout

            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
            T                                     
     K0000000

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffed3b73980 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55d037b0ad30 /* 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    execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x55d037b0ad40 /* 7 vars */) = 0
12    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++