by@kurgm
AC
2653ms
i=input().find('T') d=-1 while 1: print(' '*d+'*'*(i-d+1)if~d else' '*i+'*') d=input().find('K')
T K
* * * * * * * * * * * * * * * * * * * * * * * * ***********
Traceback (most recent call last): File "/volume/CODE", line 5, in <module> d=input().find('K') EOFError: EOF when reading a line