Result

AC

Duration

847ms

Code [DL]

[inputs|sub("K +";"")]as$i|"\(.)
"*($i|length)+$i[-1]+"@"*((.|index("T"))-($i[-1]|length)+1)

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                     
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc36ed7980 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55e8740accf8 /* 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} ---
13    execve("/usr/bin/jq", ["/usr/bin/jq", "-rR", "-f", "/volume/CODE"], 0x55e874ad3350 /* 7 vars */ <unfinished ...>
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 resumed> )            = 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=3, si_stime=0} ---
10    +++ exited with 0 +++