by@hakatashi
WA
541ms
require'matrix' a,b,c,d=STDIN.read.lines.map{|l|Vector[*l.split.map{|i|i.to_i}]} p Matrix[b-a,c-a,d-a].det
89 07 79 97 90 85 32 79 08 34 66 70
313446