Result

AC

Duration

4505ms

Code [DL]

import java.util.*;interface A{static void main(String[]a){int i=0,X[]=new int[12];for(Scanner s=new Scanner(System.in);i<12;)X[i]=s.nextInt()-X[i++%3];System.out.print(((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

81 72 26
07 07 18
14 02 69
08 65 21

stdout

35794

stderr