Result

AC

Duration

1533ms

Code [DL]

use std::io::*;fn main(){let mut a=[0;8];while stdin().read(&mut a).unwrap()>7{print!("{}",a[if a[2]!=a[1]{4}else{1}]-48)}}

stdin

987 136
639 932
383 987
363 673
867 221
849 447
318 589
955 997
253 538
655 169
135 615
332 282
755 557
294 943
855 553
494 995
266 645
435 556
951 154
655 958
861 116
922 874
166 995
233 319
351 445
867 618
384 285
344 314
713 275
399 296
663 234
937 787

stdout

19962455556259596515126346242927

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff42dce7e0 /* 7 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x561abac76d18 /* 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/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.rs"], 0x561abac76d38 /* 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("/usr/bin/rustc", ["/usr/bin/rustc", "-o", "/tmp/code", "/tmp/code.rs"], 0x561abac76d48 /* 7 vars */) = 0
19    +++ exited with 0 +++
18    +++ exited with 0 +++
20    +++ exited with 0 +++
21    +++ exited with 0 +++
22    +++ exited with 0 +++
23    +++ exited with 0 +++
26    +++ exited with 0 +++
29    +++ exited with 0 +++
25    +++ exited with 0 +++
28    +++ exited with 0 +++
24    +++ exited with 0 +++
27    +++ exited with 0 +++
32    +++ exited with 0 +++
31    +++ exited with 0 +++
33    +++ exited with 0 +++
34    +++ exited with 0 +++
16    --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_TKILL, si_pid=14, si_uid=0} ---
30    +++ exited with 0 +++
16    +++ exited with 0 +++
17    +++ exited with 0 +++
35    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", ...], 0x55e3c72b1460 /* 7 vars */) = -1 ENOENT (No such file or directory)
35    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", ...], 0x55e3c72b1460 /* 7 vars */) = -1 ENOENT (No such file or directory)
35    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", ...], 0x55e3c72b1460 /* 7 vars */) = -1 ENOENT (No such file or directory)
35    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", ...], 0x55e3c72b1460 /* 7 vars */) = -1 ENOENT (No such file or directory)
35    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", ...], 0x55e3c72b1460 /* 7 vars */) = -1 ENOENT (No such file or directory)
35    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", ...], 0x55e3c72b1460 /* 7 vars */) = 0
36    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", ...], 0x19f52e0 /* 12 vars */) = 0
37    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", ...], 0x7ffdff4f5518 /* 12 vars */) = 0
37    +++ exited with 0 +++
36    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=37, si_uid=0, si_status=0, si_utime=3, si_stime=11} ---
36    +++ exited with 0 +++
35    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=36, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
35    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=35, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
15    +++ exited with 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=14, si_stime=4} ---
38    execve("/bin/cat", ["cat", "-"], 0x561abac76d08 /* 7 vars */ <unfinished ...>
39    execve("/tmp/code", ["/tmp/code"], 0x561abac76cf0 /* 7 vars */ <unfinished ...>
38    <... execve resumed>)             = 0
39    <... execve resumed>)             = 0
38    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=38, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
39    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=39, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
40    execve("/bin/rm", ["rm", "/tmp/code.rs", "/tmp/code"], 0x561abac76cf0 /* 7 vars */) = 0
40    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=40, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++