Result

WA

Duration

496ms

Code [DL]

s=open(0).read().split()
t=[int(s[i+3])-int(s[i%3])for i in range(9)]
print(sum(t[i]*t[3+(i+1)%3]*t[6+(i+2)%3]for i in range(3)))

stdin

95 87 62
49 76 72
44 18 02
83 20 64

stdout

32598

stderr