#include <stdio.h>
int main()
{
double l,w,d,o,a,b,c;
int n,m,i,j,k;
scanf("%d",&n);
k=0;
while(n--)
{
scanf("%lf %lf %lf %lf",&l,&w,&d,&o);
if(((l<=56&&w<=45&&d<=25)||(l+w+d<=125))&&o<=7)
{
printf("1\n");
k++;
}
else printf("0\n");
}
printf("%d\n",k);
return 0;
}
int main()
{
double l,w,d,o,a,b,c;
int n,m,i,j,k;
scanf("%d",&n);
k=0;
while(n--)
{
scanf("%lf %lf %lf %lf",&l,&w,&d,&o);
if(((l<=56&&w<=45&&d<=25)||(l+w+d<=125))&&o<=7)
{
printf("1\n");
k++;
}
else printf("0\n");
}
printf("%d\n",k);
return 0;
}
No comments:
Post a Comment