#C9049. Sequence Transformation
Sequence Transformation
Sequence Transformation
You are given an integer \(T\) representing the number of test cases. For each test case, a line of space-separated integers is provided. Your task is to compute the sum of all integers in each sequence and output the result on a new line.
The sum for a sequence \(a_1, a_2, \ldots, a_n\) is computed by the formula:
[ S = \sum_{i=1}^{n} a_i ]
For example, if the input is:
3 1 2 3 5 0 5 0 7 14 21 28
Then the output should be:
6 10 70
Read the input from standard input and write the output to standard output.
inputFormat
The first line contains an integer \(T\) denoting the number of test cases. Each of the following \(T\) lines contains at least one integer, separated by spaces.
outputFormat
For each test case, output a single line containing the sum of the integers in the corresponding sequence.
## sample3
1 2 3
5 0 5 0
7 14 21 28
6
10
70
</p>