Result

AC

Duration

879ms

Code [DL]

var x:[Int]=[]
for _ in 0..<4{
x+=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}
}
for i in 0..<9{
x[i]-=x[9+i%3]
}
print((x[0]*(x[5]*x[7]-x[4]*x[8])+x[1]*(x[3]*x[8]-x[5]*x[6])+x[2]*(x[4]*x[6]-x[3]*x[7]))/6)

stdin

03 41 89
05 14 01
05 37 53
95 77 22

stdout

8369

stderr

/tmp/code.swift:3:16: warning: 'characters' is deprecated: Please use String or Substring directly
x+=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}
               ^
/tmp/code.swift:3:50: warning: 'init' is deprecated: Please use String or Substring directly
x+=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}
                                                 ^

strace