by@akouryy1
AC
801ms
"#{a,*b,c=$stack[0].to_s.lines;puts a,b.map{a},(c.rstrip+?a*99)[0..a=~/T/]}";;
T K
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T Kaaaaa