by@kurgm
WA
461ms
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}'
56 56 89 42 69 38 08 12 03 06 31 93
0