Result

WA

Duration

945ms

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

621 265
573 338
424 214
118 989
596 993
793 736
855 665
977 812
988 895
748 873
597 774
243 685
833 114
672 276
244 947
711 311
382 466
142 743
233 335
956 337
955 559
687 337
431 316
452 257
445 241
677 782
575 756
987 793
597 669
144 329
336 332
424 928

stdout

6        3        18        9        36        77        9        5        4        33        2        4        3        6        3        3        6        31        2        4        7        56        5        4        3                

stderr

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

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcfa35a590 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x56089142b028 /* 7 vars */ <unfinished ...>
12    execve("/usr/bin/ag_launcher", ["/usr/bin/ag_launcher", "-i", "/usr/bin/make", "-f", "/volume/CODE"], 0x56089142b0a8 /* 7 vars */ <unfinished ...>
11    <... execve resumed>)             = 0
12    <... execve resumed>)             = 0
12    execve("/usr/bin/make", ["/usr/bin/make", "-f", "/volume/CODE"], 0x558f55399da0 /* 8 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    +++ exited with 2 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
10    +++ exited with 2 +++