by@kurgm
AC
509ms
j,k,l,a,b,c,d,e,f,g,h,i=[int(_)for _ in open("/dev/stdin").read().split()] a-=j b-=k c-=l d-=j e-=k f-=l g-=j h-=k i-=l print((a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)//6)
26 04 86 19 48 23 46 96 68 58 92 41
17790