by@pizzacat83a
WA
767ms
n=0 t,k=0,0 while 1: n+=1 l=input() if 'T' in l: t=l.index('T') if 'K' in l: k=l.index('K') break print(' '*k,'*'*(t-k),'T',sep='') for i in range(n-1): print(' '*~-k,'*') print(' '*~-k,'K')
T K
*********************************************T * * K
11 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff8d373200 /* 7 vars */) = 0 12 execve("/bin/cat", ["cat", "-"], 0x55aec0761d38 /* 7 vars */ <unfinished ...> 13 execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x55aec0761d50 /* 7 vars */ <unfinished ...> 12 <... execve resumed> ) = 0 13 <... 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=0, si_stime=0} --- 11 +++ exited with 0 +++