Result

AC

Duration

790ms

Code [DL]

"[(lambda x: globals().__setitem__('q',x) if 'T' in x else (exit(__import__('sys').stdout.write(q+'\n'+x.rstrip()+(len(q.rstrip())-len(x.rstrip()))*'*')) if 'K' in x else __import__('sys').stdout.write(q+'\n')))(raw_input()) for _ in range(100)]"~

stdin

                                        T         
                                                  
                                                  
          K                                       

stdout

                                        T         
                                        T         
                                        T         
          K******************************

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff0efdf3b0 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x558896af6d18 /* 7 vars */) = 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    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.stk"], 0x558896af6d38 /* 7 vars */) = 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=0, si_stime=0} ---
13    execve("/bin/cat", ["cat", "-"], 0x558896af6d68 /* 8 vars */) = 0
14    execve("/usr/bin/python", ["/usr/bin/python", "stuck.py", "/tmp/code.stk"], 0x5588974010a8 /* 8 vars */) = 0
13    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=1, si_stime=1} ---
15    execve("/bin/rm", ["rm", "/tmp/code.stk"], 0x558896af6c98 /* 8 vars */) = 0
15    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++