标签:ted sample bottom style class ssi print cal follow
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 80359 Accepted Submission(s): 53785
#include <stdio.h> int main(void){ int a; int i, sum; int n, q = 0, s; scanf_s("%d", &s); if (q < s) { q++; while (scanf_s("%d", &n) != EOF) { sum = 0; for (i = 0; i < n; i++) { scanf_s("%d", &a); sum += a; } printf("%d\n", sum); } } else return 0; return 0; }
标签:ted sample bottom style class ssi print cal follow
原文地址:http://www.cnblogs.com/WLHBlog/p/7565317.html