Result

WA

Duration

700ms

Code [DL]

a,*b,c=open(0)
i=a.find("T")
for l in b:print(" "*i+"*")
d=c.rstrip()+"*"*i
print(d[:i+1])

stdin

                                      T           
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                       K                          

stdout

                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                                      *
                       K***************

stderr

strace