3 条题解

  • 3
    @ 2026-3-4 15:34:54

    #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
    难度
    2
    标签
    递交数
    42
    已通过
    26
    上传者