by@moratorium08
AC
1782ms
use std::io::*;fn main(){let b=&mut[0;8];for i in 0..32{stdin().read(b);print!("{}",b[if b[1]==b[2]{2}else{4}]-48)}}
943 389 355 668 526 113 266 661 527 274 496 655 779 452 119 185 264 648 754 554 892 662 716 181 542 227 168 829 566 761 744 496 247 747 244 575 275 858 429 927 723 523 322 728 532 121 524 442 988 883 849 441 881 481 684 592 166 727 229 585 299 771 477 784
35162641656128647489521484456597
warning: unused variable: `i` --> /tmp/code.rs:1:46 | 1 | use std::io::*;fn main(){let b=&mut[0;8];for i in 0..32{stdin().read(b);print!("{}",b[if b[1]==b[2]{2}else{4}]-48)}} | ^ help: consider prefixing with an underscore: `_i` | = note: `#[warn(unused_variables)]` on by default warning: unused `std::result::Result` that must be used --> /tmp/code.rs:1:57 | 1 | use std::io::*;fn main(){let b=&mut[0;8];for i in 0..32{stdin().read(b);print!("{}",b[if b[1]==b[2]{2}else{4}]-48)}} | ^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default = note: this `Result` may be an `Err` variant, which should be handled
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fffbac6dd40 /* 7 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5559c1ff7d18 /* 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/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.rs"], 0x5559c1ff7d38 /* 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("/usr/bin/rustc", ["/usr/bin/rustc", "-o", "/tmp/code", "/tmp/code.rs"], 0x5559c1ff7d48 /* 7 vars */) = 0 19 +++ exited with 0 +++ 17 +++ exited with 0 +++ 18 +++ exited with 0 +++ 22 +++ exited with 0 +++ 20 +++ exited with 0 +++ 23 +++ exited with 0 +++ 21 +++ exited with 0 +++ 26 +++ exited with 0 +++ 28 +++ exited with 0 +++ 25 +++ exited with 0 +++ 27 +++ exited with 0 +++ 29 +++ exited with 0 +++ 30 +++ exited with 0 +++ 24 +++ exited with 0 +++ 32 +++ exited with 0 +++ 33 +++ exited with 0 +++ 15 +++ exited with 0 +++ 16 +++ exited with 0 +++ 31 +++ exited with 0 +++ 34 execve("/usr/lib/rustlib/x86_64-alpine-linux-musl/bin/cc", ["cc", "-Wl,--as-needed", "-Wl,-z,noexecstack", "-Wl,--eh-frame-hdr", "-m64", "-L", "/usr/lib/rustlib/x86_64-alpine-l"..., "/tmp/code.code.7rcbfp3g-cgu.0.rc"..., "/tmp/code.code.7rcbfp3g-cgu.1.rc"..., "/tmp/code.code.7rcbfp3g-cgu.10.r"..., "/tmp/code.code.7rcbfp3g-cgu.11.r"..., "/tmp/code.code.7rcbfp3g-cgu.12.r"..., "/tmp/code.code.7rcbfp3g-cgu.13.r"..., "/tmp/code.code.7rcbfp3g-cgu.14.r"..., "/tmp/code.code.7rcbfp3g-cgu.15.r"..., "/tmp/code.code.7rcbfp3g-cgu.2.rc"..., "/tmp/code.code.7rcbfp3g-cgu.3.rc"..., "/tmp/code.code.7rcbfp3g-cgu.4.rc"..., "/tmp/code.code.7rcbfp3g-cgu.5.rc"..., "/tmp/code.code.7rcbfp3g-cgu.6.rc"..., "/tmp/code.code.7rcbfp3g-cgu.7.rc"..., "/tmp/code.code.7rcbfp3g-cgu.8.rc"..., "/tmp/code.code.7rcbfp3g-cgu.9.rc"..., "-o", "/tmp/code", "/tmp/code.14qnxy4t7ap9bmcs.rcgu."..., "-Wl,--gc-sections", "-pie", "-Wl,-zrelro", "-Wl,-znow", "-nodefaultlibs", "-L", ...], 0x562ecb6f0d20 /* 7 vars */) = -1 ENOENT (No such file or directory) 34 execve("/bin/cc", ["cc", "-Wl,--as-needed", "-Wl,-z,noexecstack", "-Wl,--eh-frame-hdr", "-m64", "-L", "/usr/lib/rustlib/x86_64-alpine-l"..., "/tmp/code.code.7rcbfp3g-cgu.0.rc"..., "/tmp/code.code.7rcbfp3g-cgu.1.rc"..., "/tmp/code.code.7rcbfp3g-cgu.10.r"..., "/tmp/code.code.7rcbfp3g-cgu.11.r"..., "/tmp/code.code.7rcbfp3g-cgu.12.r"..., "/tmp/code.code.7rcbfp3g-cgu.13.r"..., "/tmp/code.code.7rcbfp3g-cgu.14.r"..., "/tmp/code.code.7rcbfp3g-cgu.15.r"..., "/tmp/code.code.7rcbfp3g-cgu.2.rc"..., "/tmp/code.code.7rcbfp3g-cgu.3.rc"..., "/tmp/code.code.7rcbfp3g-cgu.4.rc"..., "/tmp/code.code.7rcbfp3g-cgu.5.rc"..., "/tmp/code.code.7rcbfp3g-cgu.6.rc"..., "/tmp/code.code.7rcbfp3g-cgu.7.rc"..., "/tmp/code.code.7rcbfp3g-cgu.8.rc"..., "/tmp/code.code.7rcbfp3g-cgu.9.rc"..., "-o", "/tmp/code", "/tmp/code.14qnxy4t7ap9bmcs.rcgu."..., "-Wl,--gc-sections", "-pie", "-Wl,-zrelro", "-Wl,-znow", "-nodefaultlibs", "-L", ...], 0x562ecb6f0d20 /* 7 vars */) = -1 ENOENT (No such file or directory) 34 execve("/usr/local/sbin/cc", ["cc", "-Wl,--as-needed", "-Wl,-z,noexecstack", "-Wl,--eh-frame-hdr", "-m64", "-L", "/usr/lib/rustlib/x86_64-alpine-l"..., "/tmp/code.code.7rcbfp3g-cgu.0.rc"..., "/tmp/code.code.7rcbfp3g-cgu.1.rc"..., "/tmp/code.code.7rcbfp3g-cgu.10.r"..., "/tmp/code.code.7rcbfp3g-cgu.11.r"..., "/tmp/code.code.7rcbfp3g-cgu.12.r"..., "/tmp/code.code.7rcbfp3g-cgu.13.r"..., "/tmp/code.code.7rcbfp3g-cgu.14.r"..., "/tmp/code.code.7rcbfp3g-cgu.15.r"..., "/tmp/code.code.7rcbfp3g-cgu.2.rc"..., "/tmp/code.code.7rcbfp3g-cgu.3.rc"..., "/tmp/code.code.7rcbfp3g-cgu.4.rc"..., "/tmp/code.code.7rcbfp3g-cgu.5.rc"..., "/tmp/code.code.7rcbfp3g-cgu.6.rc"..., "/tmp/code.code.7rcbfp3g-cgu.7.rc"..., "/tmp/code.code.7rcbfp3g-cgu.8.rc"..., "/tmp/code.code.7rcbfp3g-cgu.9.rc"..., "-o", "/tmp/code", "/tmp/code.14qnxy4t7ap9bmcs.rcgu."..., "-Wl,--gc-sections", "-pie", "-Wl,-zrelro", "-Wl,-znow", "-nodefaultlibs", "-L", ...], 0x562ecb6f0d20 /* 7 vars */) = -1 ENOENT (No such file or directory) 34 execve("/usr/local/bin/cc", ["cc", "-Wl,--as-needed", "-Wl,-z,noexecstack", "-Wl,--eh-frame-hdr", "-m64", "-L", "/usr/lib/rustlib/x86_64-alpine-l"..., "/tmp/code.code.7rcbfp3g-cgu.0.rc"..., "/tmp/code.code.7rcbfp3g-cgu.1.rc"..., "/tmp/code.code.7rcbfp3g-cgu.10.r"..., "/tmp/code.code.7rcbfp3g-cgu.11.r"..., "/tmp/code.code.7rcbfp3g-cgu.12.r"..., "/tmp/code.code.7rcbfp3g-cgu.13.r"..., "/tmp/code.code.7rcbfp3g-cgu.14.r"..., "/tmp/code.code.7rcbfp3g-cgu.15.r"..., "/tmp/code.code.7rcbfp3g-cgu.2.rc"..., "/tmp/code.code.7rcbfp3g-cgu.3.rc"..., "/tmp/code.code.7rcbfp3g-cgu.4.rc"..., "/tmp/code.code.7rcbfp3g-cgu.5.rc"..., "/tmp/code.code.7rcbfp3g-cgu.6.rc"..., "/tmp/code.code.7rcbfp3g-cgu.7.rc"..., "/tmp/code.code.7rcbfp3g-cgu.8.rc"..., "/tmp/code.code.7rcbfp3g-cgu.9.rc"..., "-o", "/tmp/code", "/tmp/code.14qnxy4t7ap9bmcs.rcgu."..., "-Wl,--gc-sections", "-pie", "-Wl,-zrelro", "-Wl,-znow", "-nodefaultlibs", "-L", ...], 0x562ecb6f0d20 /* 7 vars */) = -1 ENOENT (No such file or directory) 34 execve("/usr/sbin/cc", ["cc", "-Wl,--as-needed", "-Wl,-z,noexecstack", "-Wl,--eh-frame-hdr", "-m64", "-L", "/usr/lib/rustlib/x86_64-alpine-l"..., "/tmp/code.code.7rcbfp3g-cgu.0.rc"..., "/tmp/code.code.7rcbfp3g-cgu.1.rc"..., "/tmp/code.code.7rcbfp3g-cgu.10.r"..., "/tmp/code.code.7rcbfp3g-cgu.11.r"..., "/tmp/code.code.7rcbfp3g-cgu.12.r"..., "/tmp/code.code.7rcbfp3g-cgu.13.r"..., "/tmp/code.code.7rcbfp3g-cgu.14.r"..., "/tmp/code.code.7rcbfp3g-cgu.15.r"..., "/tmp/code.code.7rcbfp3g-cgu.2.rc"..., "/tmp/code.code.7rcbfp3g-cgu.3.rc"..., "/tmp/code.code.7rcbfp3g-cgu.4.rc"..., "/tmp/code.code.7rcbfp3g-cgu.5.rc"..., "/tmp/code.code.7rcbfp3g-cgu.6.rc"..., "/tmp/code.code.7rcbfp3g-cgu.7.rc"..., "/tmp/code.code.7rcbfp3g-cgu.8.rc"..., "/tmp/code.code.7rcbfp3g-cgu.9.rc"..., "-o", "/tmp/code", "/tmp/code.14qnxy4t7ap9bmcs.rcgu."..., "-Wl,--gc-sections", "-pie", "-Wl,-zrelro", "-Wl,-znow", "-nodefaultlibs", "-L", ...], 0x562ecb6f0d20 /* 7 vars */) = -1 ENOENT (No such file or directory) 34 execve("/usr/bin/cc", ["cc", "-Wl,--as-needed", "-Wl,-z,noexecstack", "-Wl,--eh-frame-hdr", "-m64", "-L", "/usr/lib/rustlib/x86_64-alpine-l"..., "/tmp/code.code.7rcbfp3g-cgu.0.rc"..., "/tmp/code.code.7rcbfp3g-cgu.1.rc"..., "/tmp/code.code.7rcbfp3g-cgu.10.r"..., "/tmp/code.code.7rcbfp3g-cgu.11.r"..., "/tmp/code.code.7rcbfp3g-cgu.12.r"..., "/tmp/code.code.7rcbfp3g-cgu.13.r"..., "/tmp/code.code.7rcbfp3g-cgu.14.r"..., "/tmp/code.code.7rcbfp3g-cgu.15.r"..., "/tmp/code.code.7rcbfp3g-cgu.2.rc"..., "/tmp/code.code.7rcbfp3g-cgu.3.rc"..., "/tmp/code.code.7rcbfp3g-cgu.4.rc"..., "/tmp/code.code.7rcbfp3g-cgu.5.rc"..., "/tmp/code.code.7rcbfp3g-cgu.6.rc"..., "/tmp/code.code.7rcbfp3g-cgu.7.rc"..., "/tmp/code.code.7rcbfp3g-cgu.8.rc"..., "/tmp/code.code.7rcbfp3g-cgu.9.rc"..., "-o", "/tmp/code", "/tmp/code.14qnxy4t7ap9bmcs.rcgu."..., "-Wl,--gc-sections", "-pie", "-Wl,-zrelro", "-Wl,-znow", "-nodefaultlibs", "-L", ...], 0x562ecb6f0d20 /* 7 vars */) = 0 35 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"..., "--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/rustlib/x86_64-alpine"..., "-L/usr/lib/rustlib/x86_64-alpine"..., "-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", "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "--as-needed", ...], 0x248b2e0 /* 12 vars */) = 0 36 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"..., "--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/rustlib/x86_64-alpine"..., "-L/usr/lib/rustlib/x86_64-alpine"..., "-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", "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "--as-needed", ...], 0x7ffd01b3b758 /* 12 vars */) = 0 36 +++ exited with 0 +++ 35 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=36, si_uid=0, si_status=0, si_utime=5, si_stime=16} --- 35 +++ exited with 0 +++ 34 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=35, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 34 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=34, si_uid=0, si_status=0, si_utime=0, si_stime=1} --- 14 +++ exited with 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=16, si_stime=4} --- 37 execve("/bin/cat", ["cat", "-"], 0x5559c1ff7d08 /* 7 vars */) = 0 38 execve("/tmp/code", ["/tmp/code"], 0x5559c1ff7cf0 /* 7 vars */) = 0 37 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=37, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 38 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=38, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 39 execve("/bin/rm", ["rm", "/tmp/code.rs", "/tmp/code"], 0x5559c1ff7cf0 /* 7 vars */) = 0 39 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=39, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 10 +++ exited with 0 +++