Result

AC

Duration

653ms

Code [DL]

R=io.read"*a"
print((R:gsub((" "):rep(50),R:sub(1,50)):gsub("K",("*"):rep(1+R:find"T"-R:find"K"%51))))

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                        
                         T                        
                         T                        
                 *********                                

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe6abfcbe0 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x558863de3d30 /* 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"], 0x558863de3d40 /* 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 +++