Result

AC

Duration

1825ms

Code [DL]

a=`dd`.split.map &.to_i;p (0..8).map{|z|z/6*(a[z]-=a[z+3])*(a[s=3+-~z%3]*a[t=-~s%3]-a[s-3]*a[t+3])}.sum/6

stdin

09 79 93
99 44 38
33 41 86
05 17 04

stdout

46630

stderr

0+1 records in
0+1 records out
36 bytes copied, 9.5643e-05 s, 376 kB/s

strace