Result

AC

Duration

1092ms

Code [DL]

using static System.Console;class _{static void Main(){int x=0,i=0;for(int[]X=new int[12];i<12;Read())x+=i/9*(X[i]=Read()*10+Read()-X[i%3])*(X[++i%3+3]*X[-~i%3+6]-X[i%3+6]*X[3-~i%3]);Write(x/6);}}

stdin

25 12 82
93 97 88
07 33 04
52 95 72

stdout

36546

stderr