by@kurgm
INVALID
1444ms
extern const char *const in; class S { public: char res[33]; S() { for (int i = 0; i < 32; i++) { const char *line = in + i * 8; res[i] = line[line[1] == line[2] ? 2 : 4]; } res[32] = 0; } }; S s; constexpr const char *f(const char *in) { return s.res; }
679 954 884 488 234 531 584 947 822 226 128 115 899 924 284 848 566 977 538 358 286 864 865 128 684 859 733 537 155 819 399 556 199 993 873 446 586 627 511 819 321 296 733 376 848 886 836 187 952 227 397 896 562 266 543 446 238 336 623 137 792 469 744 556
94592198638183599461238128243144
11 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd4e731a50 /* 6 vars */) = 0 13 execve("/bin/cat", ["cat", "/dev/urandom"], 0x5623b349f580 /* 6 vars */) = 0 14 execve("/usr/bin/tr", ["tr", "-dc", "a-zA-Z0-9"], 0x5623b349f5a0 /* 6 vars */) = 0 15 execve("/usr/bin/fold", ["fold", "-w", "32"], 0x5623b349f598 /* 6 vars */ <unfinished ...> 16 execve("/usr/bin/head", ["head", "-n", "1"], 0x5623b349f598 /* 6 vars */ <unfinished ...> 15 <... execve resumed> ) = 0 16 <... execve resumed> ) = 0 16 +++ exited with 0 +++ 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 15 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=15, si_uid=0} --- 15 +++ killed by SIGPIPE +++ 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=15, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} --- 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_KILLED, si_pid=14, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} --- 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=13, si_uid=0, si_status=SIGPIPE, 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} --- 18 execve("/bin/cat", ["cat", "-"], 0x5623b349f828 /* 6 vars */ <unfinished ...> 19 execve("/bin/hex", ["hex"], 0x5623b349f840 /* 6 vars */ <unfinished ...> 18 <... execve resumed> ) = 0 19 <... execve resumed> ) = 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} --- 20 execve("/bin/cat", ["cat"], 0x5623b349f7a8 /* 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 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5623b1796c00 /* 6 vars */) = 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("/bin/cat", ["cat", "/volume/CODE"], 0x5623b349f510 /* 6 vars */) = 0 23 execve("/usr/bin/tr", ["tr", "-d", "#"], 0x5623b349f520 /* 6 vars */) = 0 24 execve("/bin/sed", ["sed", "s/??=/XXX/g"], 0x5623b349f530 /* 6 vars */ <unfinished ...> 25 execve("/bin/sed", ["sed", "s/%:/XX/g"], 0x5623b349f528 /* 6 vars */) = 0 24 <... execve resumed> ) = 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 +++ 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 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 25 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 26 execve("/usr/bin/clang-9", ["/usr/bin/clang-9", "-Wall", "-O2", "-std=c++11", "/tmp/main.cpp", "-o", "/tmp/code", "-lm", "-lstdc++"], 0x5623b349f508 /* 6 vars */) = 0 27 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"..., ...], 0x7ffe50aebdb8 /* 6 vars */) = 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=21, si_stime=4} --- 28 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-665df7.o", "-lm", "-lstdc++", "-lgcc", "--as-needed", "-lgcc_s", "--no-as-needed", "-lc", ...], 0x7ffe50aebdb8 /* 6 vars */) = 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=2, si_stime=4} --- 26 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=0, si_utime=1, si_stime=1} --- 29 execve("/tmp/code", ["/tmp/code"], 0x5623b1796b90 /* 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} --- 30 execve("/bin/cat", ["cat", "/tmp/UBeEwlbWjXT2EADtsXV0QGZRzuw"...], 0x5623b1796b98 /* 6 vars */) = 0 30 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 31 execve("/bin/rm", ["rm", "-f", "/tmp/main.cpp", "/tmp/code.cpp", "/tmp/code", "/tmp/UBeEwlbWjXT2EADtsXV0QGZRzuw"...], 0x5623b349f468 /* 6 vars */) = 0 31 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 11 +++ exited with 0 +++