Result

AC

Duration

700ms

Code [DL]

a,*b,c=open(0)
print(a*len(b)+a+f"{c.rstrip():0<{a.find('T')}}0")

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                             
            K00000000

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc5f48fa10 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x556b482bdd38 /* 7 vars */ <unfinished ...>
12    execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x556b482bdd50 /* 7 vars */ <unfinished ...>
11    <... execve resumed> )            = 0
12    <... execve resumed> )            = 0
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=1, si_stime=0} ---
10    +++ exited with 0 +++