Result

AC

Duration

982ms

Code [DL]

$_=`dd`;/T/;s/(?<=\n.{$-[0]}) /#/g;s/(?<=K) */"#"x length$&/ge;print

stdin

                                           T      
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                      K           

stdout

                                           T      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                           #      
                                      K#####      

stderr

4+1 records in
4+1 records out

strace