标签:main sum span pre style scan for 输出 printf
#include <stdio.h> int main() { int n,m; scanf("%d",&n); while(n--) { scanf("%d",&m); int i,j,sum = 0; for(i=1;i<=m;i++) { scanf("%d",&j); sum += j; } printf("%d\n",sum); } return 0; }
(HDU)1093 --A+B for Input-Output Practice (V)(输入输出练习(V))
标签:main sum span pre style scan for 输出 printf
原文地址:http://www.cnblogs.com/ACDoge/p/6130424.html