HDU 2024
来源:互联网 发布:网络推广访问者 编辑:程序博客网 时间:2024/04/30 08:33
#include<iostream>#include<cctype>#include<string>using namespace std;int main(){ int n, length; string line; char t; bool con, res; while(cin >> n) { getline(cin, line); while(n--) { getline(cin, line); length = line.size(); res = con = true; if(!(isalpha(line[0]))) if(line[0] != '_') con = res = false; for(int i = 1; i < length && con; i++) if(!(isalnum(line[i]))) if(!(isdigit(line[i]))) if(line[i] != '_') con = res = false; if(res) cout << "yes" << endl; else cout << "no" << endl; } } return 0;}
0 0
- hdu 2024
- HDU 2024
- HDU 2024
- hdu 2024
- HDU--2024
- hdu oj 2024
- hdu 2024 水题
- HDU-ACM-2024
- HDU 2024 JAVA
- hdu
- hdu
- HDU
- hdu ()
- hdu
- hdu
- HDU
- HDU
- hdu
- 获取手机的储存空间
- HDU 2022
- 一致性。
- HDU 2023
- UVA - 536 Tree Recovery
- HDU 2024
- 程立支付宝首席架构师,视频演讲地址,
- HDU 2025
- 关于ViewPager的懒加载问题
- Javascript的奇怪用法
- 我是一名程序员
- 区分struct和typedef struct
- http、TCP/IP协议与socket之间的区别
- 位,字节,字,字长