标签:
#include "stdio.h" int main(void){ int i, m, n; int sum = 0; while(scanf("%d", &m) != EOF){ for(i=0; i<m; i++){ scanf("%d", &n); sum += n; } printf("%d\n", sum); sum = 0; } return 0; }
HDOJ 1094
原文地址:http://www.cnblogs.com/cnfanhua/p/4220933.html