| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160199 | 张蔚林 | 合法的标识符 | C++ | Accepted | 1 MS | 276 KB | 336 | 2026-09-13 09:38:24 |
#include<bits/stdc++.h> using namespace std; int main() { char s[21]; cin>>s; for(int i=0;i<strlen(s);i++){ if(s[0]>='0'&&s[0]<='9'){ cout<<"no"; return 0; } if(!(s[i]<='z'&&s[i]>='a'||s[i]>='A'&&s[i]<='Z'||s[i]=='_'||s[i]<='9'&&s[i]>='0')){ cout<<"no"; return 0; } } cout<<"yes"; return 0; }