by@lip_of_cygnus
AC
538ms
require'matrix' p Matrix[*$<.map{|l|[1,*l.split.map(&:to_i)]}].det/6
22 81 73 26 97 38 63 98 27 70 39 09
13901