Result

WA

Duration

766ms

Code [DL]

console.log((""+require('fs').readFileSync(0)).replace(/(.{50})./gs,"$1T").replace(/(?<=K.*) (?=.*T)/g,0))

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                    K00000000000000000000000000000T

stderr

strace