Result

AC

Duration

1085ms

Code [DL]

0vv o*48+1<
 >>i'T'=?v^

vo*25o*88<
>i25*=?v
v      <
>:>:0=  ?vi'K'=?vv
  ^       o*84-1 <

 vv?=*25i<
 >       ^
  >~88*o25*ov
^           <
v             +1<
>:0=?;1-88*ov
^           <

stdin

                           T                      
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
         K                                        

stdout

                           @
                           @
                           @
                           @
                           @
                           @
                           @
                           @
                           @
                           @
                           @
         @@@@@@@@@@@@@@@@@@@

stderr

strace