UVa 12798 - Handball

#include<stdio.h>
int main()
{
    int p,m,g,i,k,c;
    while(scanf("%d %d",&p,&m)==2)
    {
        c=0;
        while(p--)
        {
            k=0;
            for(i=1;i<=m;i++)
            {
                scanf("%d",&g);
                if(g>0)
                    k++;
            }
            if(k==m)
                c++;
        }
        printf("%d\n",c);
    }
    return 0;
}
Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 মন্তব্য(গুলি):

একটি মন্তব্য পোস্ট করুন