by@hakatashi
AC
558ms
require'matrix' x=$<.map{|l|Vector[*l.split.map(&:to_i),1]} p -Matrix[*x].det/6
74 10 11 61 10 10 67 79 91 26 97 08
15078