Result

WA

Duration

538ms

Code [DL]

b>ia*i+bc4**v
v^? }-1:{~i-<
>9>:e$-[ $:}${{-  :nao } }@{1-  :nao ] ?v;
  ^                                     <

stdin

01 15 85
34 25 46
08 76 09
04 97 04

stdout

-5
8

stderr

something smells fishy...

strace