#K78352. Total Team Points Calculation
Total Team Points Calculation
Total Team Points Calculation
In a coding contest, each team earns points by solving various tasks. The input data begins with an integer \(n\) representing the number of teams. For each team, the first integer \(t\) denotes the number of tasks that the team has solved, followed by \(t\) integers indicating the points earned for each task.
Your task is to calculate the total points for each team, using the formula \(\sum_{i=1}^{t} p_i\) where \(p_i\) are the points of each task. The results should be output in the same order as the teams appear in the input, with each team's total separated by a space.
inputFormat
The input is read from standard input (stdin) and has the following format:
- The first line contains a single integer \(n\) which is the number of teams.
- For each team, the first number is an integer \(t\) representing the number of tasks solved by that team.
- This is followed by \(t\) integers, each representing the points earned by solving a task.
All numbers are separated by whitespace or newlines.
outputFormat
Output a single line to standard output (stdout) containing the total points for each team, in order. The totals should be separated by a single space.
## sample2
3
100
200
300
2
50
75
600 125