Result

WA

Duration

698ms

Code [DL]

a,*b=open(0)
print(a*len(b),(b[-1].rstrip()+"*"*99)[:a.find("T")])

stdin

                                  T               
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
   K                                              

stdout

                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
                                  T               
    K******************************

stderr

strace