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 45 1 2 3 4 50

## Sample Output:

1015

## Note:

Info

Provider NOJ

Code NOJ1087

Tags

Submitted 169

Passed 56

AC Rate 33.14%

Date 04/20/2019 10:03:10

Related

Nothing Yet