Result

WA

Duration

542ms

Code [DL]

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

stdin

18 92 89
04 22 77
49 77 26
84 31 92

stdout

66
-46
35
15
9
80
3
-61
66

stderr