Result

AC

Duration

1228ms

Code [DL]

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

stdin

412 239
679 191
244 454
553 821
911 655
933 393
183 882
274 443
155 881
966 665
479 572
232 117
755 114
576 256
466 661
753 532
892 922
251 953
486 817
522 927
536 665
352 251
214 643
251 521
215 625
343 196
597 665
437 781
499 877
958 554
399 191
889 982

stdout

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

stderr

make: *** No targets.  Stop.

strace

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