1 条题解
-
1
#include<bits/stdc++.h> using namespace std; int main() { int t,i; cin>>t; while(t--) { string password; cin>>password; bool has_upper=false; bool has_digit=false; for(i=0;i<password.length();i++) { if(isupper(password[i])) has_upper=true; if(isdigit(password[i])) has_digit=true; } if(password.length()>=8&&has_upper&&has_digit) cout<<"Y"<<endl; else cout<<"N"<<endl; } return 0; }
信息
- ID
- 3436
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 6
- 标签
- 递交数
- 24
- 已通过
- 12
- 上传者