by@xuzijian629_key
AC
569ms
require'matrix';p -Matrix[*$<.map{|l|l.split.map(&:to_i)<<1}].det/6
47 02 32 32 42 72 71 10 86 53 25 20
10785