Result

AC

Duration

1260ms

Code [DL]

lines>>.&{given $=$_~|($!//=$_) {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                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
          t                                       
  kkkkkkkkt                                       

stderr

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

strace