Result

AC

Duration

2560ms

Code [DL]

a=gets;puts$<.map{|l|$_=l;a};$_[a=~/T/]=?A;0while$_.sub!'K ','KK';print

stdin

                                T                 
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
     K                                            

stdout

                                T                 
                                T                 
                                T                 
                                T                 
                                T                 
                                T                 
                                T                 
                                T                 
                                T                 
                                T                 
                                T                 
     KKKKKKKKKKKKKKKKKKKKKKKKKKKA                 

stderr

strace