#P364. 练62.3 学习效率
练62.3 学习效率
Description
A class has students, arranged in rows with students in each row. Each student has a diligence value . We need to calculate each student's learning efficiency, which is defined as their own diligence value plus the diligence values of up to surrounding students, i.e., the sum of diligence values in the square centered on each student. Please calculate the learning efficiency for each student.
Input Format
First line contains an integer (), representing the size of the class.
Next lines, each containing integers (), representing the diligence value of each student.
Output Format
Output lines, each containing integers, representing the learning efficiency of each student.
Sample
2
1 2
3 410 10
10 10
Related
In following homework: