1 条题解

  • 0
    @ 2025-3-30 8:59:50
    #include<bits/stdc++.h>         
    using namespace std;
    string syx; 
    int a,b,c;
    int main(){
        cin>>syx;
        int i=0;
        while(syx[i]!='#'){
            if(syx[i]>='A'&&syx[i]<='Z') a++;
            else if(syx[i]>='a'&&syx[i]<='z') b++;
            else if(syx[i]>='0'&&syx[i]<='9') c++;
            i++;
        }
        cout<<a<<" "<<b<<" "<<c;
    
    
    }
    	
    
    
    • 1

    信息

    ID
    285
    时间
    1000ms
    内存
    16MiB
    难度
    4
    标签
    递交数
    195
    已通过
    55
    上传者