Result

WA

Duration

479ms

Code [DL]

X={}for i=-3,8 do X[i]=io.read("*n")-(X[i-3]or 0)end
print((X[0]*(X[4]*X[8]-X[5]*X[7])+X[1]*(X[5]*X[6]-X[3]*X[8])+X[2]*(X[3]*X[7]-X[4]*X[6]))//6)

stdin

05 24 02
16 70 28
11 39 80
31 48 28

stdout

8663

stderr

strace