Result

AC

Duration

1028ms

Code [DL]

t=0 1 2 3 4 5 6 7 8 9
i=$(STDIN)
$(foreach d,$t,$(eval i:=$$(subst $d, $d,$$i)))
$(foreach ,$t $t $t $t,$(info $(if $(findstring $(word 2,$i),$(word 3,$i)),$(word 3,$i),$(word 4,$i)))$(eval i:=$$(wordlist 7,999,$$i)))

stdin

963 669
198 648
422 994
939 226
288 311
722 291
313 159
327 771
379 953
196 962
274 844
236 349
542 147
664 377
152 229
533 934
851 152
474 387
844 442
541 449
977 771
523 322
227 579
686 637
788 681
188 664
662 441
217 374
176 272
256 562
622 496
299 923

stdout

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








stderr

make: *** No targets.  Stop.

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff95829970 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x558582e85028 /* 7 vars */) = 0
12    execve("/usr/bin/ag_launcher", ["/usr/bin/ag_launcher", "-i", "/usr/bin/make", "-f", "/volume/CODE"], 0x558582e850a8 /* 7 vars */) = 0
11    +++ exited with 0 +++
12    execve("/usr/bin/make", ["/usr/bin/make", "-f", "/volume/CODE"], 0x563135b14da0 /* 8 vars */ <unfinished ...>
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 resumed>)             = 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 +++