Result

AC

Duration

935ms

Code [DL]

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

stdin

533 231
227 724
744 148
418 341
353 851
972 364
639 336
462 265
396 931
778 283
254 173
526 269
722 271
564 717
316 664
251 127
699 112
498 995
294 448
239 973
338 365
822 229
364 649
199 452
677 778
141 211
577 743
911 641
923 113
995 442
958 953
755 881

stdout

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

stderr

make: *** No targets.  Stop.

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcb8342150 /* 7 vars */) = 0
12    execve("/usr/bin/ag_launcher", ["/usr/bin/ag_launcher", "-i", "/usr/bin/make", "-f", "/volume/CODE"], 0x559a7b1170a8 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x559a7b117028 /* 7 vars */) = 0
12    execve("/usr/bin/make", ["/usr/bin/make", "-f", "/volume/CODE"], 0x55bb05034da0 /* 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 +++