by@kotatsugame_t
AC
2308ms
import os fn main(){for i:=32;i--;{a:=os.get_line() print(a[if a[1]==a[2]{2}else{4}])}}
766 626 675 619 956 952 283 386 846 447 593 297 311 515 699 997 558 488 696 675 253 239 729 993 515 964 658 854 186 884 813 774 933 334 483 859 866 958 164 638 248 483 155 374 569 153 722 326 571 993 478 882 899 881 277 769 278 137 433 556 268 686 446 683
66934219462998873866451298971366
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe4d7e4f90 /* 7 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55aaf30a2d18 /* 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} --- 12 execve("/bin/cp", ["cp", "-f", "/volume/CODE", "/tmp/code.v"], 0x55aaf30a2d38 /* 7 vars */) = 0 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("/bin/cat", ["cat", "-"], 0x55aaf30a2d58 /* 7 vars */) = 0 14 execve("/root/v", ["/root/v", "run", "/tmp/code.v"], 0x55aaf30a2d80 /* 7 vars */) = 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=0, si_stime=0} --- 15 execve("/bin/sh", ["sh", "-c", "cc -std=gnu11 -Wall -Wextra -Wn"...], 0x556ef70e3780 /* 8 vars */) = 0 15 execve("/usr/bin/cc", ["cc", "-std=gnu11", "-Wall", "-Wextra", "-Wno-unused-variable", "-Wno-unused-parameter", "-Wno-unused-result", "-Wno-unused-function", "-Wno-missing-braces", "-Wno-unused-label", "-Werror=implicit-function-declar"..., "-o", "/tmp/code", "/root/.cache/v/code.tmp.c", "-lm", "-lpthread", "-ldl"], 0x556043849688 /* 8 vars */) = 0 16 execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/9.3.0/cc1", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-quiet", "/root/.cache/v/code.tmp.c", "-quiet", "-dumpbase", "code.tmp.c", "-mtune=generic", "-march=x86-64", "-auxbase", "code.tmp", "-Wall", "-Wextra", "-Wno-unused-variable", "-Wno-unused-parameter", "-Wno-unused-result", "-Wno-unused-function", "-Wno-missing-braces", "-Wno-unused-label", "-Werror=implicit-function-declar"..., "-std=gnu11", "-o", "/tmp/ccNJKmAI.s"], 0xa73c20 /* 11 vars */) = 0 16 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=102, si_stime=4} --- 17 execve("/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/as", ["/usr/lib/gcc/x86_64-alpine-linux"..., "--64", "-o", "/tmp/ccJnadnf.o", "/tmp/ccNJKmAI.s"], 0xa73c20 /* 11 vars */) = 0 17 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=8, si_stime=1} --- 18 execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/9.3.0/collect2", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin", "/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin-opt=/usr/libexec/gcc/x86"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "--eh-frame-hdr", "--hash-style=gnu", "-m", "elf_x86_64", "--as-needed", "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", "-pie", "-z", "relro", "-z", "now", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/lib/../lib", "-L/usr/lib/../lib", ...], 0xa73c20 /* 13 vars */) = 0 19 execve("/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld", ["/usr/lib/gcc/x86_64-alpine-linux"..., "-plugin", "/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin-opt=/usr/libexec/gcc/x86"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "--eh-frame-hdr", "--hash-style=gnu", "-m", "elf_x86_64", "--as-needed", "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", "-pie", "-z", "relro", "-z", "now", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/lib/../lib", "-L/usr/lib/../lib", ...], 0x7ffe7d986f20 /* 13 vars */) = 0 19 +++ exited with 0 +++ 18 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=1, si_stime=0} --- 18 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 15 +++ exited with 0 +++ 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 20 execve("/bin/sh", ["sh", "-c", "\"/tmp/code\""], 0x556ef70e3780 /* 8 vars */) = 0 20 execve("/tmp/code", ["/tmp/code"], 0x563add7c2c60 /* 8 vars */) = 0 20 +++ exited with 0 +++ 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 14 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=8, si_stime=1} --- 10 +++ exited with 0 +++