Result

AC

Duration

489ms

Code [DL]

s=[*map(int,open(0).read().split())]
a,b,c,d,e,f,g,h,i=[s[i+3]-s[i%3]for i in range(9)]
print((a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)//6)

stdin

74 10 13
87 34 77
49 52 60
15 06 93

stdout

32094

stderr

strace