Result

AC

Duration

801ms

Code [DL]

"#{a,*b,c=$stack[0].to_s.lines;puts a,b.map{a},(c.rstrip+?a*99)[0..a=~/T/]}";;

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                     
                       Kaaaaa

stderr

strace