Result

AC

Duration

787ms

Code [DL]

t=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
l=4 10 16 22 28 34 40 46 52 58 64 70 76 82 88 94 100 106 112 118 124 130 136 142 148 154 160 166 172 178 184 190
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 $(word $p, $l),x x $i),$(word $(word $p,$l),x $i)),$(word $(word $p,$l),x x $i),$(word $(word $p,$l),$i))))

stdin

823 226
733 969
754 948
218 558
155 552
667 664
869 197
255 737
244 748
395 215
288 855
529 886
862 682
295 543
588 772
293 948
899 893
533 118
417 462
146 617
933 814
161 613
883 338
392 379
496 695
373 871
751 518
455 523
383 381
299 994
518 889
383 285

stdout

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

stderr

make: *** No targets.  Stop.

strace

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