Eligibilty Test

0

0 votes
Medium
Problem

GBU's Programming Club takes things seriously so they decide to create an eligibility test for candidates who are willing to join Programming Club. Your task is to sort the given 3 X 3 square matrix in ascending order row-wise and find its inverse.

Input:

  • There will be 3 line, each ith line will have 3 elements denoting the elements of the matrix.

Constraints:

-109 ≤ matrix[i][j] ≤ 109

Output:

Print the inverse of the matrix.

Author:

Aayush Agrawal

Testers:

Aayush Agrawal

Anubhav Singh

Sample Input
3 0 2
2 0 -2
0 1 1
Sample Output
1.0 -0.5 -2.0 
-1.0 0.0 3.0 
1.0 0.0 -2.0 
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?