by@hakatashi
AC
541ms
require'matrix';p -Matrix[*$<.map{|l|l.split.map(&:to_i)<<1}].det/6
94 99 74 27 66 38 04 79 03 56 29 01
27251