Result

AC

Duration

1615ms

Code [DL]

import java.util.*;class A{public static void main(String[]a){Scanner s=new Scanner(System.in);int[]X=new int[12];for(int i=0;i<12;i++)X[i]=s.nextInt()-X[i%3];System.out.printf("%d",((X[4]*X[8]-X[5]*X[7])*X[9]+(X[5]*X[6]-X[3]*X[8])*X[10]+(X[3]*X[7]-X[4]*X[6])*X[11])/6);}}

stdin

08 38 80
34 09 34
22 15 03
02 83 20

stdout

10930

stderr

strace