A+B

Time Limit:1000MS Memory Limit:65536KB

Total Submit:50 Accepted:23 Page View:7918

原题链接

Description

Your task is to calculate the sum of some integers.

Input

Input contains multiple test cases, and one case one line. Each case starts with an integer N( 0 < N<=500 ), and then N integers follow in the same line.

Output

For each test case you should output the sum of N integers in one line, and with one line of output for each line in input.
4 1 2 3 4
5 1 2 3 4 5
10
15

 

posted @ 2017-03-17 14:54  dearvee  阅读(194)  评论(0)    收藏  举报