Răspuns:
#include<iostream>
using namespace std;
int n,i,x,pare,impar,k;
int main()
{
cin>>n;
for(i=1;i<=n;i++)
{
cin>>x;
if(x>1001)
{
while(x)
{
if(x==0)pare++;
else if(x%2==0)pare++;
else if(x%2==1)impar++;
x/=10;
}
if(pare>1 && impar>1)k++;
}
}
cout<<k;
}