Result

AC

Duration

1401ms

Code [DL]

#define constexpr /**/
auto o=(char*)malloc(1e5);int x,c,i;char*f(const char*a){for(;c=a[i];)o[i++]=c|=c&4?x=0:(x=++x%51-c%2*51)<1;return o;}

stdin

                                  T               
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                         K                        

stdout

                                  T               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                                  !               
                         K!!!!!!!!!               

stderr

In file included from /tmp/main.cpp:2:
/tmp/code.cpp:2:64: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
auto o=(char*)malloc(1e5);int x,c,i;char*f(const char*a){for(;c=a[i];)o[i++]=c|=c&4?x=0:(x=++x%51-c%2*51)<1;return o;}
                                                              ~^~~~~
/tmp/code.cpp:2:64: note: place parentheses around the assignment to silence this warning
auto o=(char*)malloc(1e5);int x,c,i;char*f(const char*a){for(;c=a[i];)o[i++]=c|=c&4?x=0:(x=++x%51-c%2*51)<1;return o;}
                                                               ^
                                                              (     )
/tmp/code.cpp:2:64: note: use '==' to turn this assignment into an equality comparison
auto o=(char*)malloc(1e5);int x,c,i;char*f(const char*a){for(;c=a[i];)o[i++]=c|=c&4?x=0:(x=++x%51-c%2*51)<1;return o;}
                                                               ^
                                                               ==
1 warning generated.

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc68ca01b0 /* 6 vars */) = 0
16    execve("/usr/bin/head", ["head", "-n", "1"], 0x55ad0c46e598 /* 6 vars */) = 0
15    execve("/usr/bin/fold", ["fold", "-w", "32"], 0x55ad0c46e598 /* 6 vars */) = 0
14    execve("/usr/bin/tr", ["tr", "-dc", "a-zA-Z0-9"], 0x55ad0c46e5a0 /* 6 vars */) = 0
13    execve("/bin/cat", ["cat", "/dev/urandom"], 0x55ad0c46e580 /* 6 vars */) = 0
16    +++ exited with 0 +++
15    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=15, si_uid=0} ---
15    +++ killed by SIGPIPE +++
14    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=14, si_uid=0} ---
14    +++ killed by SIGPIPE +++
13    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=13, si_uid=0} ---
13    +++ killed by SIGPIPE +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=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} ---
19    execve("/bin/hex", ["hex"], 0x55ad0c46e840 /* 6 vars */) = 0
18    execve("/bin/cat", ["cat", "-"], 0x55ad0c46e828 /* 6 vars */) = 0
19    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
18    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
21    execve("/bin/cat", ["cat"], 0x55ad0c46e7a8 /* 6 vars */) = 0
20    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
21    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
22    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55ad0a79dc00 /* 6 vars */) = 0
22    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
23    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.cpp"], 0x55ad0a79dc20 /* 6 vars */) = 0
23    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
24    execve("/usr/bin/clang-9", ["/usr/bin/clang-9", "-Wall", "-O2", "-std=c++11", "/tmp/main.cpp", "-o", "/tmp/code", "-lm", "-lstdc++"], 0x55ad0c46e508 /* 6 vars */) = 0
25    execve("/usr/lib/llvm-9/bin/clang", ["/usr/lib/llvm-9/bin/clang", "-cc1", "-triple", "x86_64-pc-linux-gnu", "-emit-obj", "-disable-free", "-disable-llvm-verifier", "-discard-value-names", "-main-file-name", "main.cpp", "-mrelocation-model", "static", "-mthread-model", "posix", "-fmath-errno", "-masm-verbose", "-mconstructor-aliases", "-munwind-tables", "-fuse-init-array", "-target-cpu", "x86-64", "-dwarf-column-info", "-debugger-tuning=gdb", "-momit-leaf-frame-pointer", "-resource-dir", "/usr/lib/llvm-9/lib/clang/9.0.0", "-internal-isystem", "/usr/bin/../lib/gcc/x86_64-linux"..., "-internal-isystem", "/usr/bin/../lib/gcc/x86_64-linux"..., "-internal-isystem", "/usr/bin/../lib/gcc/x86_64-linux"..., ...], 0x7ffee3761fe8 /* 6 vars */) = 0
25    +++ exited with 0 +++
24    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=0, si_utime=24, si_stime=5} ---
26    execve("/usr/bin/ld", ["/usr/bin/ld", "-z", "relro", "--hash-style=gnu", "--build-id", "--eh-frame-hdr", "-m", "elf_x86_64", "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", "-o", "/tmp/code", "/usr/bin/../lib/gcc/x86_64-linux"..., "/usr/bin/../lib/gcc/x86_64-linux"..., "/usr/bin/../lib/gcc/x86_64-linux"..., "-L/usr/bin/../lib/gcc/x86_64-lin"..., "-L/usr/bin/../lib/gcc/x86_64-lin"..., "-L/lib/x86_64-linux-gnu", "-L/lib/../lib64", "-L/usr/lib/x86_64-linux-gnu", "-L/usr/bin/../lib/gcc/x86_64-lin"..., "-L/usr/lib/llvm-9/bin/../lib", "-L/lib", "-L/usr/lib", "/tmp/main-7ec1eb.o", "-lm", "-lstdc++", "-lgcc", "--as-needed", "-lgcc_s", "--no-as-needed", "-lc", ...], 0x7ffee3761fe8 /* 6 vars */) = 0
26    +++ exited with 0 +++
24    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=0, si_utime=5, si_stime=3} ---
24    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=1, si_stime=1} ---
27    execve("/tmp/code", ["/tmp/code"], 0x55ad0a79db90 /* 6 vars */) = 0
27    +++ exited with 0 +++
11    --- 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("/bin/cat", ["cat", "/tmp/fcKsV7cB4GJNqTFYzYlyBUlEnpt"...], 0x55ad0a79db98 /* 6 vars */) = 0
28    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=28, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
29    execve("/bin/rm", ["rm", "-f", "/tmp/main.cpp", "/tmp/code.cpp", "/tmp/code", "/tmp/fcKsV7cB4GJNqTFYzYlyBUlEnpt"...], 0x55ad0c46e468 /* 6 vars */) = 0
29    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=29, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++