#include<bits/stdc++.h>
using namespace std;
int main()
{
int i,j,k,count=0;
double test,l,w,d,W;
cin>>test;
for(i=1;i<=test;i++)
{
cin>>l>>w;
cin>>d>>W;
if(((l<=56.0&&w<=45.0&&d<=25.0)||(l+d+w<=125.0))&&(W<=7.0))
{
count++;
cout<<1<<endl;
}
else
cout<<0<<endl;
}
cout<<count<<endl;
return 0;
}
using namespace std;
int main()
{
int i,j,k,count=0;
double test,l,w,d,W;
cin>>test;
for(i=1;i<=test;i++)
{
cin>>l>>w;
cin>>d>>W;
if(((l<=56.0&&w<=45.0&&d<=25.0)||(l+d+w<=125.0))&&(W<=7.0))
{
count++;
cout<<1<<endl;
}
else
cout<<0<<endl;
}
cout<<count<<endl;
return 0;
}
No comments:
Post a Comment