# hdoj A+B for Input-Output Practice (VI)

### Input

Input contains multiple test cases, and one case one line. Each case starts with an integer N, 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.

### Sample Input

4 1 2 3 4
5 1 2 3 4 5

代码：
#include<stdio.h>
int main()
{
int a,sum=0;
int m;
while(scanf("%d",&m)!=EOF)
{
for(int i=1;i<=m;i++)
{
scanf("%d",&a);
sum=sum+a;
}
printf("%d\n",sum);
sum=0;
}
return 0;
}

注意：没啥注意的 水

#### [水题][hdoj_1094]A+B for Input-Output Practice (VI)

2012-07-31 01:20:16

#### [水题][hdoj_1096]A+B for Input-Output Practice (VIII)

2012-07-31 01:42:21

#### 【杭电】[1094]A+B for Input-Output Practice (VI)

2015-12-20 11:05:47

#### 1096:A+B for Input-Output Practice (VIII)

2014-04-11 17:42:02

#### 杭电acm1095 A+B for Input-Output Practice (VII)

2013-10-15 18:50:01

#### 【杭电oj】1090 - A+B for Input-Output Practice (II)

2016-01-13 20:42:09

#### A+B for Input-Output Practice (II) java

2017-11-12 22:56:21

#### 山东理工大学ACM平台题答案关于C语言 1012 A+B for Input-Output Practice (III)

2013-12-13 20:56:31

#### 【杭电oj1089】A+B for Input-Output Practice (I)

2016-08-14 11:33:37

#### HDOJ中的A+B for Input-Output Practice (I) java语言

2017-11-12 22:13:34