Result

WA

Duration

492ms

Code [DL]

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

stdin

59 34 02
60 62 20
06 68 44
94 02 26

stdout

stderr

/volume/CODE:1: syntax error

strace