Result

AC

Duration

1249ms

Code [DL]

import std.stdio;void main(){int[30]a;for(int i;readf(" %d",&a[i]);)a[i]-=a[i%3]*(i++>2);write=(a[11]*(a[7]*a[3]-a[4]*a[6])+a[10]*(a[5]*a[6]-a[3]*a[8])+a[9]*(a[4]*a[8]-a[7]*a[5]))/6;}

stdin

55 59 77
64 84 06
02 44 26
43 91 97

stdout

31164

stderr