密码强度
2026-04-24 19:44:46
发布于:江苏
19阅读
0回复
0点赞
很简单。
#include<bits/stdc++.h>
using namespace std;
int t;
int main(){
cin>>t;
char a[10005];
for(int i=0;i<t;i++){
cin>>a;
int q=0,w=0,e=0;
for(int j=0;j<strlen(a);j++){
q++;
if(a[j]>='A'&&a[j]<='Z')
w++;
if(a[j]>='0'&&a[j]<='9')
e++;
}
if(q>=8&&w>0&&e>0)
cout<<"Y"<<endl;
else
cout<<"N"<<endl;
q=0;w=0;e=0;
}
return 0;
}
这里空空如也








有帮助,赞一个