#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,x,supp=0,giv=0,cse=0;
while(cin>>t){
if(t==0)
break;
for(int i=0; i<t; i++){
cin>>x;
if(x>0)
supp++;
else
giv++;
}
cout<<"Case "<<++cse<<": "<<supp-giv<<endl;
supp=0,giv=0;
}
return 0;
}
using namespace std;
int main()
{
int t,x,supp=0,giv=0,cse=0;
while(cin>>t){
if(t==0)
break;
for(int i=0; i<t; i++){
cin>>x;
if(x>0)
supp++;
else
giv++;
}
cout<<"Case "<<++cse<<": "<<supp-giv<<endl;
supp=0,giv=0;
}
return 0;
}
No comments:
Post a Comment