标识符
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
输入数据包含多组测试用例,输入数据的第一行是一个整数 ,表示测试用例的个数.
然后是 行输入数据,每行是一个长度不超过 的字符串,以回车结尾(字符串本身保证不包含回车).
Output Format
对于每组输入数据,输出一行。如果输入数据是合法标识符,则输出“yes”,否则输出“no”.
3
13asf
df9p__a
fd ah_2
no
yes
no
Hint
注意处理行末回车.
2022暑期集训营 第二周排位赛
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2022-7-10 13:00
- End at
- 2022-7-10 17:00
- Duration
- 4 hour(s)
- Host
- Partic.
- 34