by@kurgm
AC
1825ms
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
09 79 93 99 44 38 33 41 86 05 17 04
46630
0+1 records in 0+1 records out 36 bytes copied, 9.5643e-05 s, 376 kB/s