标签:
#include <stdio.h> int main() { int a, sum, n, i, m; while (~scanf ("%d", &n)&&n) { while(n--) { scanf("%d", &m); sum = 0; for(i=1;i<=m;i++) { scanf("%d", &a); sum += a; } printf ("%d\n", sum); } } return 0; }
HDU 1093 A+B for Input-Output Practice (V)
标签:
原文地址:http://www.cnblogs.com/Noevon/p/5928214.html