#include<cstdio>
#include <iostream>
#include <string>
using namespace std;
int main()
{
int test_case, count = 0;
float length, width, depth, weight;
cin >> test_case;
while(test_case--)
{
cin>>length>>width>>depth>>weight;
if((length<=56.00&&width<=45.00&&depth<=25.00||(length+width+depth)<=125.00)&&weight<=7.00){
cout<<"1"<<endl;
count++;
}
else
cout<<"0"<<endl;
}
cout<<count<<endl;
return 0;
}
No comments:
Post a Comment