Result

AC

Duration

1011ms

Code [DL]

linesĀ».&{($=$_~|($ //=$_))~~{1 while s/k\s/kk/;.say}}

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                          
   kkkkkkkkkkkkkkkkkkkkt                          

stderr

WARNINGS for /volume/CODE:
Useless use of constant integer 1 in sink context (use Nil instead to suppress this warning) (line 1)

strace