Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
107391 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 合法的标识符 | C++ | Wrong Answer | 0 MS | 272 KB | 364 | 2025-01-17 16:17:44 |
#include<bits/stdc++.h> using namespace std; string s; int main() { getline(cin,s); bool a=true; if(s[1]>='0'&&s[1]<='9'){ cout<<"no"; return 0; } for(int i=0;i<s.size();i++){ if(s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z'||s[i]>='0'&&s[i]<='9'){ a=true; } else{ cout<<"no"; return 0; } } cout<<"yes"; return 0; }
------Input------
_10674
------Answer-----
yes
------Your output-----
no