by@hakatashi
AC
549ms
require'matrix' a,b,c,d=STDIN.read.lines.map{|l|Vector[*l.split.map(&:to_i)]} p Matrix[b-a,c-a,d-a].det/6
14 47 97 20 36 74 83 07 69 14 09 67
6392