3 条题解

  • 0
    @ 2024-12-11 13:35:41

    #include<bits/stdc++.h> using namespace std; int main() { char ch; cin>>ch; if(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch>='1'&&ch<='9') { if(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z') { cout<<"character"; } if(ch>='1'&&ch<='9') { cout<<"digit"; } } else { cout<<"other"; } return 0; }

    • 0
      @ 2024-12-11 13:22:08

      #include<bits/stdc++.h> using namespace std; int main() { char ch; cin>>ch; if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z') { cout<<"character"; } else if(ch>='0'&&ch<='9') { cout<<"digit"; } else { cout<<"other"; } }

      • 0
        @ 2024-12-6 13:05:02

        #include<bits/stdc++.h>

        using namespace std;

        int main()

        {

        char ch;
        
        cin>>ch;
        
        if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z')
        
          cout<<"character";
        
        else if(ch>='0'&&ch<='9')
        
          cout<<"digit";
        
        else
        
          cout<<"other";
        
        return 0;
        

        }

        • 1

        信息

        ID
        156
        时间
        1000ms
        内存
        256MiB
        难度
        3
        标签
        递交数
        70
        已通过
        38
        上传者