Result

AC

Duration

827ms

Code [DL]

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

stdin

                                         T        
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
           K                                      

stdout

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcb8ef6a00 /* 7 vars */) = 0
13    execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x5650edf80d50 /* 7 vars */ <unfinished ...>
12    execve("/bin/cat", ["cat", "-"], 0x5650edf80d38 /* 7 vars */ <unfinished ...>
13    <... execve resumed> )            = 0
12    <... execve resumed> )            = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=1, si_stime=2} ---
11    +++ exited with 0 +++