Result

WA

Duration

3052ms

Code [DL]

print$a=<>;<>;$c=$_,print$a for<>;$_=$a^$c;tr/\0/ /;s/t *k|k */$&=~s{ }{*}r/e;print

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        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
                                         T        
 k*                                      t         

stderr

strace