跳到正文

xiayixuan18

1705713

在洛谷打开
资料、奖项与版本

资料

编号
1705713
抓取

陶片放逐

− 发送私信

查看记录

#include<bits/stdc++.h> using namespace std; char s[29]; int main(){ cin.getline(s,29); int len=strlen(s); if(s[0]>=‘0’&&s[0]<=‘9’){ cout<<“no”; return 0; } for(int i=0;i<len;i++){ if(!(s[i]>=‘0’&&s[i]<=‘9’||s[i]==’_‘||s[i]>=‘A’&&s[i]<=‘Z’||s[i]>=‘a’&&s[i]<=‘z’)){ cout<<“no”; return 0; } } cout<<“yes”; return 0; }

还没有收录这位用户的文章。