Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
107389 | 何嘉欢 | 合法的标识符 | C++ | Wrong Answer | 1 MS | 276 KB | 244 | 2025-01-17 16:16:06 |
#include<bits/stdc++.h> using namespace std; string s; int main(){ cin>>s; int a=1; for(int i=0;i<s.size();i++){ if(s[0]>='0'&&s[0]<='9'){ a=0; cout<<"no"; break; } } if(a!=0){ cout<<"yes"; } return 0; }
------Input------
a_b!d
------Answer-----
no
------Your output-----
yes