Result

AC

Duration

506ms

Code [DL]

module m;integer X[0:11],v;initial begin
for(v=0;$fscanf(1<<31,"%d",X[v]);v+=1)if(v>2)X[v]-=X[v%3];$write(((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);end
endmodule

stdin

55 87 91
78 41 51
60 05 49
09 53 06

stdout

      29454

stderr

strace