Result

AC

Duration

534ms

Code [DL]

Scanf.scanf"%d %d %d "(fun j k l->let f()=Scanf.scanf"%d %d %d "(fun x y z->(x-j,y-k,z-l))in let(a,b,c)=f()and(d,e,f)=f()and(g,h,i)=f()in Printf.printf"%d"((a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6))

stdin

29 11 66
21 09 07
95 63 17
76 09 72

stdout

25945

stderr

strace