by@n4o847
AC
2288ms
import os fn main(){for i:=0;i<32;i++{a:=os.get_line() println(if a[1]==a[2]{a[2]}else{a[4]})}}
811 337 569 969 381 219 276 663 679 377 375 667 652 556 267 168 696 899 899 697 399 992 381 118 543 426 832 321 544 591 312 129 488 842 144 842 933 887 415 259 423 329 835 586 255 678 855 552 171 334 668 151 822 217 185 684 672 255 929 255 891 993 473 583
1 9 2 6 3 6 5 1 8 9 9 1 4 3 4 1 8 4 3 2 3 5 5 5 3 1 2 6 2 2 9 5
11 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff8baaa370 /* 7 vars */) = 0 12 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x560b311c2d18 /* 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", "-f", "/volume/CODE", "/tmp/code.v"], 0x560b311c2d38 /* 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("/bin/cat", ["cat", "-"], 0x560b311c2d58 /* 7 vars */ <unfinished ...> 15 execve("/root/v", ["/root/v", "run", "/tmp/code.v"], 0x560b311c2d80 /* 7 vars */ <unfinished ...> 14 <... execve resumed>) = 0 15 <... execve resumed>) = 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=0, si_stime=0} --- 16 execve("/bin/sh", ["sh", "-c", "cc -std=gnu11 -Wall -Wextra -Wn"...], 0x5644b8f43780 /* 8 vars */) = 0 16 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"], 0x559a4aa50688 /* 8 vars */) = 0 17 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/ccibmCfp.s"], 0x240ac20 /* 11 vars */) = 0 17 +++ exited with 0 +++ 16 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=71, si_stime=6} --- 18 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/ccOghOfJ.o", "/tmp/ccibmCfp.s"], 0x240ac20 /* 11 vars */) = 0 18 +++ exited with 0 +++ 16 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=6, si_stime=1} --- 19 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", ...], 0x240ac20 /* 13 vars */) = 0 20 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", ...], 0x7ffe859c1260 /* 13 vars */) = 0 20 +++ exited with 0 +++ 19 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=2} --- 19 +++ exited with 0 +++ 16 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=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=0, si_stime=0} --- 21 execve("/bin/sh", ["sh", "-c", "\"/tmp/code\""], 0x5644b8f43780 /* 8 vars */) = 0 21 execve("/tmp/code", ["/tmp/code"], 0x55715e0bdc60 /* 8 vars */) = 0 21 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 15 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=6, si_stime=5} --- 11 +++ exited with 0 +++