Result

AC

Duration

1126ms

Code [DL]

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

stdin

66 27 38
93 04 71
12 87 40
03 33 01

stdout

17106

stderr

strace