Result

AC

Duration

894ms

Code [DL]

"\\#{x=gets;t=1+x.index(?T);print x;while !u=gets.index(?K) do print x end;print (' '*u + ?= * (t-u))}"

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                           
                      T                           
          =============

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff2736b780 /* 9 vars */) = 0
13    execve("/usr/local/ruby-2.6.3/bin/ruby", ["/usr/local/ruby-2.6.3/bin/ruby", "/root/cy.rb", "-f", "/volume/CODE"], 0x558ee5b810b8 /* 9 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x558ee5b81068 /* 9 vars */) = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=8, si_stime=4} ---
11    +++ exited with 0 +++