by@lip_of_cygnus
WA
492ms
x = $<.lines.map{|l|l.split.map(&:to_i)}.flatten _,_,_,a,b,c,d,e,f,g,h,i = x.map.with_index{|e,i|e-x[i%3]} p (a*e*i+b*f*g+c*d*h-a*f*h-b*d*i-c*e*g)/6
59 34 02 60 62 20 06 68 44 94 02 26
/volume/CODE:1: syntax error