by@kurgm
WA
496ms
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)))
95 87 62 49 76 72 44 18 02 83 20 64
32598