by@kurgm
AC
2450ms
i=input().find('T')
d=-1
while 1:print(['*'*(i-d+1),'*'][d<0].rjust(i+1));d=input().find('K') T
K
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
************************
Traceback (most recent call last):
File "/volume/CODE", line 3, in <module>
while 1:print(['*'*(i-d+1),'*'][d<0].rjust(i+1));d=input().find('K')
EOFError: EOF when reading a line