/*
* a b c
* arr = d e f
* g h i
*
* determinant = a*(e*i - f*h) - b*(d*i-f*g) + c*(d*h - e*g)
*
*/
void main() {
List<List<int>> matrix = [[6, 1, 1], [4, -2, 5], [2, 8, 7]];
var determinant =
matrix[0][0] * (matrix[1][1] * matrix[2][2] - matrix[1][2] * matrix[2][1]) -
matrix[0][1] * (matrix[1][0] * matrix[2][2] - matrix[1][2] * matrix[2][0]) +
matrix[0][2] * (matrix[1][0] * matrix[2][1] - matrix[1][1] * matrix[2][0]);
print(determinant);
}
/*
run:
-306
*/