Result

WA

Duration

917ms

Code [DL]

1=$(STDIN)
f=$(foreach d,1 2 3 4 5 6 7 8 9,$(eval 1:=$(1:$d%=$d %)))$(if $1,$(or $(filter $(word 2,$1),$(word 3,$1)),$(word 4,$1))$(call f,$(wordlist 7,999,$1)))
a:;$f

stdin

455 543
987 872
211 885
524 791
457 791
861 645
944 538
514 889
155 331
986 881
599 997
185 185
843 416
894 441
425 924
615 663
892 226
182 823
353 364
139 339
722 228
862 265
514 998
418 989
833 581
466 866
631 948
581 349
955 521
589 987
852 823
466 163

stdout

5        2        7        7        45        14        5        5        8        43        4        6        2        8        3        39        62        9        8        6        9        4        5        52        6        

stderr

make: 5: No such file or directory
make: *** [/volume/CODE:3: a] Error 127

strace

16    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff2d70faf0 /* 7 vars */) = 0
18    execve("/usr/bin/ag_launcher", ["/usr/bin/ag_launcher", "-i", "/usr/bin/make", "-f", "/volume/CODE"], 0x55e82e5ff0a8 /* 7 vars */) = 0
17    execve("/bin/cat", ["cat", "-"], 0x55e82e5ff028 /* 7 vars */) = 0
18    execve("/usr/bin/make", ["/usr/bin/make", "-f", "/volume/CODE"], 0x55e8536b7da0 /* 8 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=0, si_stime=0} ---
18    +++ exited with 2 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
16    +++ exited with 2 +++