/ OPS / 题库 /

CC

CC

#描述#
Your task is to Calculate the sum of some integers.

#格式#
##输入格式##
Input contains multiple test cases. Each test case contains a integer N, and then N integers follow in the same line. A test case starting with 0 terminates the input and this test case is not to be processed.

##输出格式##
For each group of input integers you should output their sum in one line, and with one line of output for each line in input.

#样例1#
##样例输入1##

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

##样例输出1##

10
15

#限制#
1000ms
32768KB

#提示#

#来源#
HDU

信息

ID
1413
难度
5
分类
category1 点击显示
标签
递交数
0
已通过
0
通过率
?
上传者