Result

WA

Duration

498ms

Code [DL]

a,b,c,d,e,f,g,h,i,j,k,l=[*map(int,open(0).read().split())]
print((a*e*i+b*f*j+l*d*h+g*k*c-j*h*f-b*l*d-c*g*e-i*k*a)//6)

stdin

38 62 38
99 04 52
29 63 05
41 86 02

stdout

12141

stderr

strace