Result

WA

Duration

510ms

Code [DL]

tr '
' \ |awk '{for(i=10;i;)$i-=$(--i%3+10);print(($2*$4-$1*$5)*$9+($3*$5-$2*$6)*$7+($1*$6-$3*$4)*$8)/6}'

stdin

42 05 29
58 21 64
02 49 46
09 26 67

stdout

11536

stderr

strace