Result

AC

Duration

542ms

Code [DL]

n/{' '/{{48-}%10base}%}%);zip{([.;]3*[\]zip{~\-}%}%[]*~8$5$*1$*8$5$*4$*+7$7$*3$*+9$5$*3$*- 8$7$*2$*- 7$6$*4$*- \;\;\;\;\;\;\;\;\;6/

stdin

74 46 27
01 06 95
76 35 67
66 73 81

stdout

22835

stderr

strace