Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- main()
- {
- int t,sum,b,c=0,count;
- double a,l,w,d,wgt;
- scanf("%d",&t);
- count=0;
- while(t--)
- {
- b=1;
- scanf("%lf%lf%lf%lf",&l,&w,&d,&wgt);
- a=l+w+d;
- if(((l<=56 && w<=45 && d<=25)||(a<=125)) && wgt<=7.0)
- {
- printf("%d\n",b);
- count++;
- }
- else
- printf("%d\n",c);
- }
- printf("%d\n",count);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment