提交时间:2021-06-26 15:07:42
运行 ID: 21081
#include<bits/stdc++.h> using namespace std; string a; int main(){ cin>>a; for(int i=0;i<a.size();i++){ if(a[i]>='0'&&a[i]<=9&&i==0){ cout<<"no"; return 0; } if(!(a[i]>='a'||a[i]<='z'||a[i]>='A'||a[i]<='Z'||a[i]=='_')){ cout<<"no"; return 0; } } cout<<"yes"; return 0; }