Result

AC

Duration

552ms

Code [DL]

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

stdin

36 02 09
73 24 72
08 56 30
08 28 84

stdout

35384

stderr

strace