合法 C 标识符
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.
描述
给定一个不包含空白符的字符串,请判断是否是C语言合法的标识符号(注:题目保证这些字符串一定不是C语言的保留字)。
C语言标识符要求:
- 非保留字;
- 只包含字母、数字及下划线(“_”)。
- 不以数字开头。
输入
一行,包含一个字符串,字符串中不包含任何空白字符,且长度不大于20。
输出
一行,如果它是C语言的合法标识符,则输出yes,否则输出no。
样例输入
RKPEGX9R;TWyYcp
样例输出
no
专题训练之字符串
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 10
- Start at
- 2023-8-4 9:30
- End at
- 2023-8-18 23:30
- Duration
- 350 hour(s)
- Host
- Partic.
- 14