Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,i,a,j,count;
- while(scanf("%d",&n)==1)
- {
- for(i=1;i<=n;i++)
- {
- count=0;
- for(j=1;j<=13;j++)
- {
- scanf("%d",&a);
- if(a!=0)
- {
- count=count+1;
- }
- }
- if(count==13)
- {
- printf("Set #%d: Yes\n",i);
- }
- else
- printf("Set #%d: No\n",i);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement