Type: Default 5000ms 256MiB

标识符

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

在 C 语言中,标识符是一个以字母或下划线开头的,由字母数字、下划线组成的字符串。

我们不用判断标识符是否与某个 C 语言关键字同名​,只需要判断其是否合法即可.

Input Format

输入数据包含多组测试用例,输入数据的第一行是一个整数 T(1T100000)T(1 \le T \le 100000) ,表示测试用例的个数.

然后是 TT 行输入数据,每行是一个长度不超过 5050 的字符串,以回车结尾(字符串本身保证不包含回车).

Output Format

对于每组输入数据,输出一行。如果输入数据是合法标识符,则输出“yes”,否则输出“no”.

3
13asf
df9p__a
fd  ah_2​
no
yes
no​

Hint

注意处理行末回车.

集训队选拔测验(搁置)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
6
Start at
2022-6-6 19:00
End at
2022-6-12 18:30
Duration
143.5 hour(s)
Host
Partic.
2