Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long t,i,count=0;
- double l,w,d,m;
- while(scanf("%lld",&t)==1)
- {
- for(i=1;i<=t;i++)
- {
- scanf("%lf%lf%lf%lf",&l,&w,&d,&m);
- if((l<=56.00&&w<=45.00&&d<=25.00&&m<=7.00)||(l+w+d<=125.00&&m<=7.00))
- {
- printf("1\n");
- count=count+1;
- }
- else
- {
- printf("0\n");
- }
- }
- printf("%lld\n",count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement