#include<bits/stdc++.h>
using namespace std;
int main()
{
double h , wi , d, we, sum=0;
int t ;
cin>>t;
while(t--){
cin>>h>>wi>>d>>we;
if(((h<=56&&wi<=45&&d<=25)||(h+wi+d<=125))&&we<=7){
cout<<1<<endl;
sum++;
}
else
cout<<0<<endl;
}
cout<<sum<<endl;
return 0;
}
using namespace std;
int main()
{
double h , wi , d, we, sum=0;
int t ;
cin>>t;
while(t--){
cin>>h>>wi>>d>>we;
if(((h<=56&&wi<=45&&d<=25)||(h+wi+d<=125))&&we<=7){
cout<<1<<endl;
sum++;
}
else
cout<<0<<endl;
}
cout<<sum<<endl;
return 0;
}
No comments:
Post a Comment