Matrix inversion#4375

Matrix inversion

ثانية
256 ميغابايت
متوسط

The square matrix is given. Find the inverse matrix.

المدخلات

The first line contains the size of the matrix (1 \leq n \leq 100). Each of the next lines contains real numbers — the data of the matrix.

المخرجات

If the inverse matrix does not exist, print NO. Otherwise, print YES in the first line, and then print lines with real numbers in each — the inverse matrix. The answer is considered correct if the absolute or relative error of the elements of the inverse matrix is no more than 10^{-6}.

أمثلة

مثال 1

Loading
Loading