Result

AC

Duration

881ms

Code [DL]

a:
	$(foreach s,$(subst $() ,X,$(STDIN)),$(word 1,$(foreach i,1 2 3 4 5 6 7 8 9,$(if $(findstring $i$i$i,$(subst X,$i,$s)),$i)) 1))

stdin

232 993
311 114
661 712
616 113
443 936
765 651
373 655
264 429
131 734
954 954
953 752
892 997
966 651
188 884
318 882
833 991
734 436
979 973
448 359
499 988
877 372
442 884
122 443
277 273
658 831
493 896
928 242
944 365
487 828
439 992
799 848
152 524

stdout

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

stderr

make: 9: No such file or directory
make: *** [/volume/CODE:2: a] Error 127

strace

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