Result

WA

Duration

5546ms

Code [DL]

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

07 91 27
61 81 72
32 06 66
59 03 09

stdout

stderr

Error: Main method not found in class A, please define the main method as:
   public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application