Result

AC

Duration

863ms

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 p,$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

312 223
411 332
144 451
368 887
236 338
887 529
433 396
613 154
566 338
366 665
847 227
972 113
966 868
726 296
738 381
313 316
361 667
692 217
133 436
273 837
854 214
916 319
346 245
472 258
957 486
511 113
323 879
317 714
399 681
219 198
344 237
394 841

stdout

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








stderr

make: *** No targets.  Stop.

strace

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