Result

AC

Duration

1110ms

Code [DL]

import std.stdio;void main(){auto s=readln;write=s[s[1]-s[2]?4:2];main();}

stdin

552 558
622 497
983 388
678 475
844 541
732 518
442 641
322 664
172 224
947 472
783 478
362 894
144 228
388 851
858 882
831 314
877 561
544 448
989 889
355 653
846 567
245 585
147 733
726 934
967 762
688 889
235 113
122 297
665 623
369 331
352 426
282 859

stdout

52344562244848837485557978126348

stderr

core.exception.RangeError@/tmp/code.d(1): Range violation
----------------
0x7f1d991d563e onRangeError
	???:0
0x55615928c7a6 _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x55615928c84d _Dmain
	???:0
0x7f1d991fbbce ???
	???:0
0x7f1d991fbd6d ???
	???:0
0x7f1d991fc0ea ???
	???:0
0x7f1d991fbd6d ???
	???:0
0x7f1d991fbf14 _d_run_main
	???:0
0x55615928c73b main
	???:0
0x7f1d98b5db96 __libc_start_main
	???:0
0x55615928c659 _start
	???:0
0xffffffffffffffff ???
	???:0

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdf9d44420 /* 6 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x562c7bad6c00 /* 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"], 0x562c7bad6c20 /* 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"], 0x562c7bad6c18 /* 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/ccxzfEmN.s"], 0x220a5e0 /* 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=5, si_stime=1} ---
15    execve("/bin/as", ["as", "--64", "-o", "/tmp/ccGBXgQU.o", "/tmp/ccxzfEmN.s"], 0x220a5e0 /* 11 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/local/sbin/as", ["as", "--64", "-o", "/tmp/ccGBXgQU.o", "/tmp/ccxzfEmN.s"], 0x220a5e0 /* 11 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/local/bin/as", ["as", "--64", "-o", "/tmp/ccGBXgQU.o", "/tmp/ccxzfEmN.s"], 0x220a5e0 /* 11 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/sbin/as", ["as", "--64", "-o", "/tmp/ccGBXgQU.o", "/tmp/ccxzfEmN.s"], 0x220a5e0 /* 11 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/bin/as", ["as", "--64", "-o", "/tmp/ccGBXgQU.o", "/tmp/ccxzfEmN.s"], 0x220a5e0 /* 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/"..., ...], 0x220ac60 /* 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/"..., ...], 0x7ffeb5fbfa00 /* 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=3, si_stime=5} ---
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} ---
19    execve("/tmp/code", ["/tmp/code"], 0x562c7bad6bd0 /* 6 vars */ <unfinished ...>
18    execve("/bin/cat", ["cat", "-"], 0x562c7bad6be8 /* 6 vars */) = 0
19    <... 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 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
20    execve("/bin/rm", ["rm", "/tmp/code.d", "/tmp/code"], 0x562c7bad6bd0 /* 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 +++