Preparing NOJ

A + B Problem (4)

1000ms 65536K

Description:

Calculate the sum of some integers.

Input:

The input will consist of multiple test cases. Each test case consist of an integer N and then N integers following in the same line,separated by a space. A line starting with 0 terminates the input and this line is not to be processed.

Output:

For test case, you should output their sum in one line, and with one line of output for each line in input. After each test case output, you should output one blank line.

Sample Input:

4 1 2 3 4
5 1 2 3 4 5
0

Sample Output:

10

15

Note:

本题由旧版NOJ导入,来源:HDUOJ

Info

NOJ

Provider NOJ

Code NOJ1087

Tags

Submitted 97

Passed 34

AC Rate 35.05%

Date 04/20/2019 10:03:10

Related

Nothing Yet