Result

AC

Duration

744ms

Code [DL]

print$a=$b=<>;
$a=~tr/T/*/;
<>;
$c=$_,print$a for<>;
$_=$a^$b^$c;
s/\^ *(?=K)|(?<=K) *\^/'*'x length($&)/e;
tr/5/K/;
print

stdin

                                            T     
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                    K             

stdout

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff306e8790 /* 7 vars */) = 0
13    execve("/usr/bin/perl", ["/usr/bin/perl", "/volume/CODE"], 0x55e712d3ed40 /* 7 vars */ <unfinished ...>
12    execve("/bin/cat", ["cat", "-"], 0x55e712d3ed30 /* 7 vars */ <unfinished ...>
13    <... execve resumed> )            = 0
12    <... execve resumed> )            = 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=0, si_stime=0} ---
11    +++ exited with 0 +++