by@kcz146
AC
6055ms
fun main(args:Array<String>){ val a=(0..3).flatMap{_->readLine()!!.split(" ").map{a->a.toInt()}}.toMutableList() for(z in 0..8)a[z]-=a[9+z%3] println((a[7]*(a[0]*a[5]-a[3]*a[2])+a[6]*(a[4]*a[2]-a[1]*a[5])+a[8]*(a[3]*a[1]-a[0]*a[4]))/6) }
67 77 18 91 58 07 03 33 64 05 94 11
15550