Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include<cstring>
- using namespace std;
- ifstream cin("a.in");
- ofstream cout("a.out");
- char a[300],aux[300];
- int n,ok=0,nr=0,st,isl,isu,isd,str;
- int main()
- {
- int n,ok=0,nr=0;
- cin>>n;
- //cin.get();
- for(int i=1;i<=n;i++)
- {
- cin.getline(a,300);
- strcpy(aux,a);
- for(int i=0;i<strlen(aux);i++)
- { if(strlen(aux)>7)st=1;
- if(islower(aux[i]))isl=1;
- if(isupper(aux[i]))isu=1;
- if(isdigit(aux[i]))isd=1;
- if(strchr(".,?!;:_@#",aux[i]))str=1;
- } if(st && isl && isu && isd && str)nr++;
- }cout<<nr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement