by@ten986
AC
2713ms
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.print(d<1?"A":(char)c+"");}} T
K
T
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
KAAAAAAA
11 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcf4062380 /* 7 vars */) = 0
12 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55e33d1efd18 /* 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"], 0x55e33d1efcf0 /* 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"], 0x55e33d1efd30 /* 8 vars */) = 0
14 execve("/usr/bin/javac", ["/usr/bin/javac", "/tmp/A.java"], 0x7f12810fdfa0 /* 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 +++
21 +++ exited with 0 +++
20 +++ exited with 0 +++
18 +++ exited with 0 +++
17 +++ 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=136, si_stime=27} ---
27 execve("/bin/cat", ["cat", "-"], 0x55e33e53b0c8 /* 8 vars */ <unfinished ...>
28 execve("/usr/bin/java", ["/usr/bin/java", "A"], 0x55e33e53b0c8 /* 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"], 0x7f421e9c7fa0 /* 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=16, si_stime=9} ---
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"], 0x55e33d1efcf0 /* 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 +++