Result

AC

Duration

830ms

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()-528-X[i%3])*(X[p=++i%3+3]*X[q=-~i%3+6]-X[p+3]*X[q-3]);Write(x/6);}}

stdin

78 92 22
78 76 84
94 97 74
23 80 08

stdout

7887

stderr

strace