by@hakatashi
AC
520ms
require'matrix' p -Matrix[*$<.map{|l|Vector[*l.split.map(&:to_i),1]}].det/6
41 10 76 72 56 54 18 50 05 49 78 90
32860