Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<array>
- #include <bits/stdc++.h>
- #include<string>
- using namespace std;
- int main ()
- {
- int n=0,l,w=0,h=0,k=0;
- cin>>n;
- while(n!=0){
- k++;
- h=0;w=0;
- for(int i=0;i<n;i++){
- cin>>l;
- if(l==0)
- w++;
- else h++;
- }
- cout<<"Case "<<k<<": "<<h-w<<endl;
- cin>>n;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement