#K91182. Race Completion Time Calculation
Race Completion Time Calculation
Race Completion Time Calculation
In a relay race, each team’s final completion time is the sum of the individual times of all its members. Given the number of teams and the number of members per team, along with each team member's completion time, compute the total time taken by each team.
The total time for team \(i\) is given by: \(T_i = \sum_{j=1}^{k} t_{ij}\), where \(t_{ij}\) is the completion time of the \(j^{th}\) member of the \(i^{th}\) team.
inputFormat
The first line of input contains two integers \(n\) and \(k\), where \(n\) is the number of teams and \(k\) is the number of members per team.
This is followed by \(n\) lines, each containing \(k\) integers. Each line represents the completion times for one team.
outputFormat
Output a single line containing \(n\) integers, where each integer is the sum of the completion times for the corresponding team. The integers should be separated by a single space.
## sample1 1
5
5
</p>