An easy Problem

Time Limit: 12000ms
Memory Limit: 32768KB
This problem will be judged on HDU. Original ID: 3521
64-bit integer IO format: %I64d      Java class name: Main

Description

We define eA as following:
Where A is a n×n symmetric matrix with real elements, I is an identity matrix.
Give you matrix A, your task is to calculate eA.

Input

There are several test cases;
Each test case begin with a line contains an integer n (1≤n≤100), the following n lines contain n×n symmetric matrix A. The rang of elements of A is (-100,100);
n=0 is the end of input and need not to proceed.

Output

For each test case, output n lines contain matrix eA , The value of elements of matrix eA must be accurate up to two decimal places. You may assume the range of elements of eA is (-10000,10000).

Sample Input

1
2
2
1 0
0 1
0

Sample Output

7.39 
2.72 0.00 
0.00 2.72

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .