Result

AC

Duration

2207ms

Code [DL]

interface A{static void main(String[]a)throws Exception{for(int d=1,c;(c=System.in.read())>0;d=c>83?1:(d-c%2*51+1)%51)System.out.write(d<1?35:c);}}

stdin

                 T                                
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
 K                                                

stdout

                 T                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
                 #                                
 K################                                

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd31838940 /* 7 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55c845fefd18 /* 7 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    execve("/bin/cp", ["cp", "/volume/CODE", "/tmp/A.java"], 0x55c845fefcf0 /* 7 vars */) = 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} ---
14    execve("/usr/bin/javac", ["/usr/bin/javac", "/tmp/A.java"], 0x55c845fefd30 /* 8 vars */) = 0
14    execve("/usr/bin/javac", ["/usr/bin/javac", "/tmp/A.java"], 0x7fb1ce5bdfa0 /* 9 vars */) = 0
14    --- SIGRT_2 {si_signo=SIGRT_2, si_code=SI_TKILL, si_pid=14, si_uid=0} ---
14    --- SIGRT_2 {si_signo=SIGRT_2, si_code=SI_TKILL, si_pid=14, si_uid=0} ---
15    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
25    +++ exited with 0 +++
19    +++ exited with 0 +++
24    +++ exited with 0 +++
23    +++ exited with 0 +++
22    +++ exited with 0 +++
20    +++ exited with 0 +++
21    +++ exited with 0 +++
17    +++ exited with 0 +++
18    +++ exited with 0 +++
16    +++ exited with 0 +++
15    +++ exited with 0 +++
14    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=118, si_stime=29} ---
27    execve("/bin/cat", ["cat", "-"], 0x55c847c540c8 /* 8 vars */ <unfinished ...>
28    execve("/usr/bin/java", ["/usr/bin/java", "A"], 0x55c847c540c8 /* 8 vars */ <unfinished ...>
27    <... execve resumed> )            = 0
28    <... execve resumed> )            = 0
27    +++ exited with 0 +++
26    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
28    execve("/usr/bin/java", ["/usr/bin/java", "A"], 0x7f0f25098fa0 /* 9 vars */) = 0
28    --- SIGRT_2 {si_signo=SIGRT_2, si_code=SI_TKILL, si_pid=28, si_uid=0} ---
28    --- SIGRT_2 {si_signo=SIGRT_2, si_code=SI_TKILL, si_pid=28, si_uid=0} ---
29    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
38    +++ exited with 0 +++
33    +++ exited with 0 +++
30    +++ exited with 0 +++
29    +++ exited with 0 +++
37    +++ exited with 0 +++
39    +++ exited with 0 +++
36    +++ exited with 0 +++
35    +++ exited with 0 +++
34    +++ exited with 0 +++
32    +++ exited with 0 +++
31    +++ exited with 0 +++
28    +++ exited with 0 +++
26    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=28, si_uid=0, si_status=0, si_utime=5, si_stime=2} ---
26    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
40    execve("/bin/rm", ["rm", "/tmp/A.java", "/tmp/A.class"], 0x55c845fefcf0 /* 8 vars */) = 0
40    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=40, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++