by@kurgm
WA
466ms
tr ' ' \ |awk '{for(;i<10;)$i-=$(i++%3+10);print(($2*$4-$1*$5)*$9+($3*$5-$2*$6)*$7+($1*$6-$3*$4)*$8)/6}'
73 10 01 01 89 46 14 07 48 61 43 64
0