1 条题解

  • 0
    @ 2025-1-10 16:56:35
    #include <bits/stdc++.h>
    using namespace std;
    int main() {
        string s;
        cin >> s;
        int n = s.length();
        if (n == 0 || n > 20) {
            cout<<"no";
            return 0;
        }
        if (isdigit(s[0])) {
            cout<<"no";
            return 0;
        }
        for (int i = 0; i < n; ++i) {
            if (!isalnum(s[i]) && s[i] != '_') {
                cout<<"no";
                return 0;
            }
        }
        cout<<"yes";
        return 0;
    }
    \\沙威玛,沙威玛,沙威玛 🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯
    
    • 1

    信息

    ID
    1295
    时间
    1000ms
    内存
    128MiB
    难度
    3
    标签
    递交数
    25
    已通过
    18
    上传者