Result

AC

Duration

739ms

Code [DL]

t=1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2
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

536 337
613 338
251 659
219 113
625 757
885 578
677 833
793 587
298 223
411 669
148 482
133 932
356 974
425 858
677 621
755 451
525 256
255 536
233 383
677 775
273 372
415 616
825 236
116 141
944 114
242 993
335 554
449 472
661 161
113 391
433 335
889 652

stdout

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

stderr

make: *** No targets.  Stop.

strace

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