by@kurgm
AC
1867ms
i=-1;Y=`dd`.split;r,t,y,a,b,c,d,e,f,g,h,i=Y.map{|e|i+=1;e.to_i-Y[i%3].to_i};p (a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6
89 87 85 87 83 01 51 42 23 03 16 60
14579
0+1 records in 0+1 records out 36 bytes copied, 0.000121644 s, 296 kB/s