by@k_hanazuki
AC
1456ms
import std.stdio;void main(){foreach(string s;stdin.lines)write=s[s[1]-s[2]?4:2];}
922 226 273 559 816 914 565 756 144 448 136 661 241 883 591 159 954 554 723 278 185 652 744 438 341 281 125 856 699 791 612 544 682 223 297 763 873 171 286 885 744 433 244 772 366 724 313 314 278 785 567 681 528 823 744 722 322 664 641 419 822 427 374 336
25974681526428952718446376842423
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcf6ec35a0 /* 6 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55b3d029ec00 /* 6 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.d"], 0x55b3d029ec20 /* 6 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/gdc", ["gdc", "/tmp/code.d", "-o", "/tmp/code"], 0x55b3d029ec18 /* 6 vars */) = 0 14 execve("/usr/lib/gcc/x86_64-linux-gnu/8/cc1d", ["/usr/lib/gcc/x86_64-linux-gnu/8/"..., "/tmp/code.d", "-quiet", "-dumpbase", "code.d", "-mtune=generic", "-march=x86-64", "-auxbase", "code", "-imultiarch", "x86_64-linux-gnu", "-o", "/tmp/cctzch6Q.s"], 0x1daa5e0 /* 11 vars */) = 0 14 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=9, si_stime=3} --- 15 execve("/bin/as", ["as", "--64", "-o", "/tmp/ccQFmo6q.o", "/tmp/cctzch6Q.s"], 0x1daa5e0 /* 11 vars */) = -1 ENOENT (No such file or directory) 15 execve("/usr/local/sbin/as", ["as", "--64", "-o", "/tmp/ccQFmo6q.o", "/tmp/cctzch6Q.s"], 0x1daa5e0 /* 11 vars */) = -1 ENOENT (No such file or directory) 15 execve("/usr/local/bin/as", ["as", "--64", "-o", "/tmp/ccQFmo6q.o", "/tmp/cctzch6Q.s"], 0x1daa5e0 /* 11 vars */) = -1 ENOENT (No such file or directory) 15 execve("/usr/sbin/as", ["as", "--64", "-o", "/tmp/ccQFmo6q.o", "/tmp/cctzch6Q.s"], 0x1daa5e0 /* 11 vars */) = -1 ENOENT (No such file or directory) 15 execve("/usr/bin/as", ["as", "--64", "-o", "/tmp/ccQFmo6q.o", "/tmp/cctzch6Q.s"], 0x1daa5e0 /* 11 vars */) = 0 15 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 16 execve("/usr/lib/gcc/x86_64-linux-gnu/8/collect2", ["/usr/lib/gcc/x86_64-linux-gnu/8/"..., "-plugin", "/usr/lib/gcc/x86_64-linux-gnu/8/"..., "-plugin-opt=/usr/lib/gcc/x86_64-"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lm", "-plugin-opt=-pass-through=-lpthr"..., "-plugin-opt=-pass-through=-ldl", "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "--build-id", "--eh-frame-hdr", "-m", "elf_x86_64", "--hash-style=gnu", "--as-needed", "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", "-pie", "-z", "now", "-z", "relro", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-linux-gnu/8/"..., "/usr/lib/gcc/x86_64-linux-gnu/8/"..., "/usr/lib/gcc/x86_64-linux-gnu/8/"..., "-L/usr/lib/gcc/x86_64-linux-gnu/"..., ...], 0x1daac60 /* 13 vars */) = 0 17 execve("/usr/bin/ld", ["/usr/bin/ld", "-plugin", "/usr/lib/gcc/x86_64-linux-gnu/8/"..., "-plugin-opt=/usr/lib/gcc/x86_64-"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lm", "-plugin-opt=-pass-through=-lpthr"..., "-plugin-opt=-pass-through=-ldl", "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "--build-id", "--eh-frame-hdr", "-m", "elf_x86_64", "--hash-style=gnu", "--as-needed", "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", "-pie", "-z", "now", "-z", "relro", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-linux-gnu/8/"..., "/usr/lib/gcc/x86_64-linux-gnu/8/"..., "/usr/lib/gcc/x86_64-linux-gnu/8/"..., "-L/usr/lib/gcc/x86_64-linux-gnu/"..., ...], 0x7fff8a338210 /* 13 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=8, si_stime=2} --- 16 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=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} --- 18 execve("/bin/cat", ["cat", "-"], 0x55b3d029ebe8 /* 6 vars */ <unfinished ...> 19 execve("/tmp/code", ["/tmp/code"], 0x55b3d029ebd0 /* 6 vars */) = 0 18 <... execve resumed> ) = 0 18 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 19 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 20 execve("/bin/rm", ["rm", "/tmp/code.d", "/tmp/code"], 0x55b3d029ebd0 /* 6 vars */) = 0 20 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 10 +++ exited with 0 +++