2013
11-27

# A+B for Input-Output Practice (V)

Input contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M integers follow in the same line.

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.

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

10
15

2011-12-12 04:51:00

mark：和1092只差一点点。

main(n,a,b){scanf("%d",&n);while(~scanf("%d",&n)&&n){b=0;while(n--){scanf("%d",&a);b+=a;}printf("%d\n",b);}}

1. 站长，你好！
你创办的的网站非常好，为我们学习算法练习编程提供了一个很好的平台，我想给你提个小建议，就是要能把每道题目的难度标出来就好了，这样我们学习起来会有一个循序渐进的过程！