Result

AC

Duration

894ms

Code [DL]

n=1 2 3 4 5 6 7 8 9
$(info $(foreach s,$(subst $() ,X,$(STDIN)),$(or $(strip $(foreach i,$n,$(if $(findstring $i$iX,$s),$i))),$(foreach i,$n,$(if $(findstring X$i,$s),$i)))))

stdin

861 532
241 312
724 445
281 876
871 132
394 994
511 219
516 616
235 536
322 929
917 174
366 664
366 669
667 875
779 997
445 687
831 339
574 778
645 221
514 223
977 728
631 237
421 537
944 294
253 531
399 428
311 339
877 782
991 922
785 389
688 992
531 177

stdout

    5       3          4             8  1                 9 1      6        5     2 1         6 6        8          9      6      3             7    2         2        7  2            5     4     5     9 1 7         9   3       8 1        

stderr

make: *** No targets.  Stop.

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc9e1266e0 /* 7 vars */) = 0
12    execve("/usr/bin/ag_launcher", ["/usr/bin/ag_launcher", "-i", "/usr/bin/make", "-f", "/volume/CODE"], 0x55e79e6180a8 /* 7 vars */ <unfinished ...>
11    execve("/bin/cat", ["cat", "-"], 0x55e79e618028 /* 7 vars */ <unfinished ...>
12    <... execve resumed>)             = 0
11    <... execve resumed>)             = 0
12    execve("/usr/bin/make", ["/usr/bin/make", "-f", "/volume/CODE"], 0x55b2e94b1da0 /* 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 +++