Result

AC

Duration

754ms

Code [DL]

i=input().find('T')
while 1:
 print(' '*i+'*')
 d=input().find('K')
 if d>=0:-print(' '*d+'*'*(i-d+1))

stdin

                    T                             
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                K                                 

stdout

                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                    *
                *****

stderr

Traceback (most recent call last):
  File "/volume/CODE", line 5, in <module>
    if d>=0:-print(' '*d+'*'*(i-d+1))
TypeError: bad operand type for unary -: 'NoneType'

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcf7318860 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x562925161d38 /* 7 vars */) = 0
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x562925161d50 /* 7 vars */) = 0
12    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=1, si_utime=2, si_stime=0} ---
10    +++ exited with 1 +++