Result

AC

Duration

869ms

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

431 376
689 457
748 281
234 448
212 286
259 771
544 365
119 566
133 936
474 575
955 543
766 886
595 918
799 993
377 751
889 699
326 262
753 354
447 773
717 117
836 632
762 554
479 987
916 312
928 377
584 297
533 634
486 889
288 967
155 553
466 337
183 839

stdout

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

stderr

make: *** No targets.  Stop.

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffda11fd030 /* 7 vars */) = 0
13    execve("/usr/bin/ag_launcher", ["/usr/bin/ag_launcher", "-i", "/usr/bin/make", "-f", "/volume/CODE"], 0x5589c99810a8 /* 7 vars */ <unfinished ...>
12    execve("/bin/cat", ["cat", "-"], 0x5589c9981028 /* 7 vars */ <unfinished ...>
13    <... execve resumed>)             = 0
12    <... execve resumed>)             = 0
13    execve("/usr/bin/make", ["/usr/bin/make", "-f", "/volume/CODE"], 0x557ee33cdda0 /* 8 vars */ <unfinished ...>
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    <... execve resumed>)             = 0
13    +++ exited with 2 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
11    +++ exited with 2 +++