Result

WA

Duration

523ms

Code [DL]

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

stdin

62 27 83
98 36 61
48 84 01
19 78 53

stdout

52

stderr

something smells fishy...

strace