Result

WA

Duration

781ms

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
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 2,$i),$(word 5,$i)))$(eval i:=$$(wordlist 6,999,$$i)))

stdin

885 853
586 884
178 383
457 572
176 797
655 549
375 121
786 789
998 398
177 774
866 667
266 771
319 174
917 112
421 445
288 789
736 685
395 661
244 497
566 161
899 139
362 268
597 784
955 848
723 451
458 375
455 117
683 334
579 996
714 589
652 252
336 567

stdout

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

stderr

make: *** No targets.  Stop.

strace

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