HDU 2027 统计元音 (吃回车的方法)
来源:互联网 发布:怎么查看淘宝等级手机 编辑:程序博客网 时间:2024/06/05 09:13
转载地址:http://blog.csdn.net/qq_32866009/article/details/50815400
题目:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=110412#problem/C
代码:
#include<stdio.h>#include<string.h>using namespace std;int main(){ int t; scanf("%d\n",&t); //新技能GET while(t--) { char a[105]; //getchar(); gets(a); int x=0,xx=0,xxx=0,y=0,yy=0; for(int i=0;i<strlen(a);i++) { if(a[i]=='a') x++; if(a[i]=='e') xx++; if(a[i]=='i') xxx++; if(a[i]=='o') y++; if(a[i]=='u') yy++; } printf("a:%d\ne:%d\ni:%d\no:%d\nu:%d\n",x,xx,xxx,y,yy); if(t)printf("\n"); }}
感谢宋学霸教我做题,爱你,么么。
0 0
- HDU 2027 统计元音 (吃回车的方法)
- 统计元音(hdu 2027)
- hdu 2027 统计元音
- HDU 2027 统计元音
- HDU 2027 统计元音
- Hdu 2027 - 统计元音
- HDU 2027 统计元音
- HDU 2027 统计元音
- HDU 2027 统计元音
- HDU 2027 统计元音
- HDU 2027 - 统计元音
- hdu-2027-统计元音
- [hdu 2027] 统计元音
- HDU 2027 统计元音
- HDU 2027 统计元音
- HDU 2027 统计元音
- hdu 2027 统计元音
- HDU 2027 -- 统计元音
- 《COM技术内幕》整理的一个FAQ
- OpenGL中的数据——Buffer
- Swift学习资源
- WebView显示网页
- nginx 作为系统服务
- HDU 2027 统计元音 (吃回车的方法)
- C++作业2
- 利用代码来添加图片按钮
- 数据存储
- 如何从零开始学习Ruby
- ProgressDialog的详细使用总结
- 三维图像技术与OpenGL基础理论
- 变量、数据类型和运算符
- java小程序之(GUI)确认对话框JOptionPane.showConfirmDialog