Result

WA

Duration

1305ms

Code [DL]

IFS= read a;while IFS= read b;do
echo "$a";f="$b";g="$f"
done
c=`sed -r 's/T.+/T/'<<<"$a"`
d=`sed -r 's/K.+/K/'<<<"$g"`
printf $d\n*%.s `eval echo {1..$[${#c}-${#d}]}`

stdin

                                     T            
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
K                                                 

stdout

                                     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            
Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*Kn*

stderr

strace