#include <iostream>
#include <cmath>
#include <string.h>
#include <stdio.h>
#include <algorithm>
using namespace std;
int main ()
{
int n;
scanf("%d%*c",&n);
char s[110];
for(int i=1;i<=n;i++)
{
gets(s);
int len;
len=strlen(s);
int j;
for(j=0;j<len;j++)
{
if((s[j]<='z'&&s[j]>='a')||(s[j]<='Z'&&s[j]>='A')||s[j]=='_')continue;
break;
}
if(j==len)printf("Yes\n");
else printf("No\n");
}
return 0;
}
山东省第二届ACM省赛 Identifiers
最新推荐文章于 2019-09-06 19:52:09 发布