Result

WA

Duration

737ms

Code [DL]

a,*b,c=open(0)
print(a+a*len(b),f'{c.rstrip():*<{a.find("T")}}')

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcb5811ec0 /* 7 vars */) = 0
13    execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x56296c0a4d50 /* 7 vars */ <unfinished ...>
12    execve("/bin/cat", ["cat", "-"], 0x56296c0a4d38 /* 7 vars */) = 0
13    <... execve resumed> )            = 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=2, si_stime=0} ---
11    +++ exited with 0 +++