Result

WA

Duration

2415ms

Code [DL]

i=input().find('T')
d=-1
while 1:;print(' '*d+'*'*(i-d+1)if~d else' '*i+'*');d=input().find('K')

stdin

                                      T           
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
           K                                      

stdout

stderr

  File "/volume/CODE", line 3
    while 1:;print(' '*d+'*'*(i-d+1)if~d else' '*i+'*');d=input().find('K')
            ^
SyntaxError: invalid syntax

strace