Result

AC

Duration

1361ms

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

741 157
939 395
574 792
576 635
635 533
633 137
785 779
133 349
167 224
171 765
276 878
164 461
199 995
866 468
496 752
427 271
534 337
416 775
766 495
483 683
563 669
822 285
876 665
972 126
971 946
133 667
141 937
943 331
599 995
311 526
618 981
266 558

stdout

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








stderr

make: *** No targets.  Stop.

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff6cf76fd0 /* 7 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x562f3eb45028 /* 7 vars */ <unfinished ...>
13    execve("/usr/bin/ag_launcher", ["/usr/bin/ag_launcher", "-i", "/usr/bin/make", "-f", "/volume/CODE"], 0x562f3eb450a8 /* 7 vars */ <unfinished ...>
12    <... execve resumed>)             = 0
13    <... execve resumed>)             = 0
13    execve("/usr/bin/make", ["/usr/bin/make", "-f", "/volume/CODE"], 0x562d21d56da0 /* 8 vars */ <unfinished ...>
12    +++ exited with 0 +++
13    <... execve resumed>)             = 0
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 2 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
11    +++ exited with 2 +++