Result

WA

Duration

559ms

Code [DL]

"\\#{require'matrix';a,*b=$<.map \&:split;p Matrix[*b.map{|x|x.zip(a).map{|e|eval e*?-}}].det/6}"

stdin

27 53 65
80 54 50
88 04 84
60 32 08

stdout

stderr

/root/cy.rb:566:in `eval': (eval):1: Invalid octal digit (SyntaxError)
08-65
^~
	from (eval):1:in `block (3 levels) in string'
	from (eval):1:in `map'
	from (eval):1:in `block (2 levels) in string'
	from (eval):1:in `map'
	from (eval):1:in `block in string'
	from /root/cy.rb:566:in `eval'
	from /root/cy.rb:566:in `block in string'
	from /root/cy.rb:665:in `block in exec'
	from /root/cy.rb:660:in `each'
	from /root/cy.rb:660:in `exec'
	from /root/cy.rb:777:in `block (3 levels) in <main>'
	from /root/cy.rb:844:in `<main>'

strace