You work as an engineer-design and are engaged in the calculation of the stability of the new bridge design. To do this, you need to evaluate the determinant of the matrix, which is a simplified model of the structure of the bridge. This matrix reflects the relationship between different structural elements. A determinant close to zero may indicate the potential instability of the structure. Your task is to write a program that calculates the determinant of the matrix size n x n.
Input format
the first line contains an integer n (1 & le; n & le; 5)-the dimension of the matrix.
The following n lines contain by n integers, separated by spaces, - elements of the matrix
Hint
There will be no clue here, decide for yourself!