hdu 2027 统计元音
来源:互联网 发布:电销数据购买 编辑:程序博客网 时间:2024/06/05 10:05
#include<iostream>#include<string>#include<cctype>using namespace std;int main(){ int n; int a,e,ii,o,u; cin>>n; cin.ignore(); string*str=new string[n]; for(int i=0;i<n;i++) {getline(cin,str[i]);} for(int i=0;i<n;i++) { a=e=ii=o=u=0; for(int j=0;j<str[i].size();j++) { switch(str[i][j]) { case 'a':a++;break; case 'e':e++;break; case 'i':ii++;break; case 'o':o++;break; case 'u':u++;break; }}cout<<"a:"<<a<<endl; cout<<"e:"<<e<<endl; cout<<"i:"<<ii<<endl; cout<<"o:"<<o<<endl; cout<<"u:"<<u<<endl; if(i!=n-1) cout<<endl; }delete [] str; return 0; }
阅读全文
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 统计元音
- 如何用深度学习做自然语言处理?这里有份最佳实践清单
- nyoj263精挑细选
- python安装教程 Pycharm安装详细教程
- 排序大全
- Android_通过Bugtags平台,方便测试人员提交bug及整个bug系统的管理
- hdu 2027 统计元音
- Centos设定PATH
- numpy for python 2.7 (windows 64 bit)
- 数字笔记珍宝(Gem for OneNote)下载 v40.1.1.258官方版
- OTT TV影音系统如何做到不丢帧、不卡顿、不花屏
- C 中的malloc/free 与C++中new/delete的区别
- TF随笔-10
- Codeforces #245 (Div. 2)C. Xor-tree(DFS&&贪心
- 关于Cesium中的常用坐标系及说明