@inkysakura
2017-04-26T22:23:47.000000Z
字数 234
阅读 1347
CODE
#include <iostream>
#include <cstdio>
using namespace std;
int nCase;
int a,sum;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n;
sum =0;
cin >> n;
for(int i=0;i<n;i++)
{
cin >> a;
if(a>0)sum+=a;
}
cout << "Case "<<++nCase<<": "<<sum<<endl;
}
return 0;
}