1 条题解

  • 0
    @ 2025-3-16 21:16:56
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
        char ch;
        cin >> ch;
    
        if (isupper(ch)) {
            cout << "upper" << endl;
        } else if (islower(ch)) {
            cout << "lower" << endl;
        } else if (isdigit(ch)) {
            cout << "digit" << endl;
        } else {
            cout << "other" << endl;
        }
    
        return 0;
    }
    
    
    • 1

    信息

    ID
    28
    时间
    1000ms
    内存
    64MiB
    难度
    9
    标签
    递交数
    11
    已通过
    5
    上传者