Result

WA

Duration

787ms

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

521 122
189 994
286 382
787 227
378 339
796 657
989 898
537 334
672 767
697 991
913 714
122 623
511 117
939 466
511 236
382 634
792 121
251 576
437 375
755 993
855 364
133 773
786 476
266 669
477 746
885 254
731 993
887 728
855 535
685 552
911 815
578 872

stdout

1 91 1 2 3 6 1 3 1 91 1 2 1 1 1 1 1 1 1 5 5 3 1 6 7 1 91 7 5 5 1 8

stderr

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

strace

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