#P3661. Determinant of Sparse Matrix

Determinant of Sparse Matrix

3 3
0 0 1
1 1 2
2 2 3
6
3 1
0 0 1
0