练62.3 学习效率
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
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
20251108C班作业(6)
- Status
- Done
- Problem
- 4
- Open Since
- 2025-11-8 0:00
- Deadline
- 2025-11-16 23:59
- Extension
- 24 hour(s)