Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
86970 sh25_zhoumy 合法C标识符 C++ 通过 0 MS 252 KB 409 2026-04-10 14:55:27

Tests(3/3):


#include <iostream> #include <string> #include <cctype> using namespace std; int main() { string s; cin >> s; if (isdigit(s[0])) { cout << "no" << endl; return 0; } for (char c : s) { if (!isalpha(c) && !isdigit(c) && c != '_') { cout << "no" << endl; return 0; } } cout << "yes" << endl; return 0; }


测评信息: