Result

WA

Duration

802ms

Code [DL]

$_,*b,c=*$<;c[?K]*=9;puts$_*-~b.size,c[0..~/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                         
   KKKKKKKKK             

stderr

strace