Result

WA

Duration

794ms

Code [DL]

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

stdin

                       T                          
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
            K                                     

stdout

stderr

Traceback (most recent call last):
  File "/volume/CODE", line 2, in <module>
    print(a+a*b+(c.rstrip()+"*"*99)[:a.find("T")+1])
TypeError: can't multiply sequence by non-int of type 'list'

strace