F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

An easy Problem

Time Limit: 24000/12000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1288    Accepted Submission(s): 472


Problem 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
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-02 16:22:48, Gzip enabled