Problem D
Darts
Consider a game in which darts are thrown at a board. The
board is formed by
Input
The first line of the input contains the number of test
cases
Each test case starts with a line containing the number of
throws
Output
Print the answers to the test cases in the order in which
they appear in the input. For each test case print a single
line containing one integer—the sum of the scores of all
Sample Input 1 | Sample Output 1 |
---|---|
1 5 32 -39 71 89 -60 80 0 0 196 89 |
29 |