标签:
Description
Input
Output
Sample Input
Sample Output
#include<stdio.h> int main() { int T,n,a; scanf("%d",&T); while(T--) { int sum=0; scanf("%d",&n); for(int i=1; i<=n; i++) { scanf("%d",&a); sum=sum+a; } printf("%d\n",sum); if(T) printf("\n"); } return 0; }
I题 - A+B for Input-Output Practice (VIII)
标签:
原文地址:http://www.cnblogs.com/hfc-xx/p/4883449.html