HDU 1219 AC Me
来源:互联网 发布:休闲皮鞋知乎 编辑:程序博客网 时间:2024/05/22 00:18
strlen能不用就不用
#include<cstdio>#include<cstdlib>#include<iostream>#include<algorithm>#include<memory.h>#include<cmath>#include<cstring>#include<string>using namespace std;char s[100010];int a[30];int main(){int i,L;while(gets(s)){memset(a,0,sizeof(a));L=strlen(s);for(i=0;i<L;i++){ int tmp=s[i]-'a'+1; if(tmp>=1&&tmp<=26) a[tmp]++;}for(i=1;i<=26;i++) printf("%c:%d\n",(i+'a'-1),a[i]);printf("\n");}return 0;}
阅读全文
0 0
- hdu 1219 AC Me
- hdu 1219 AC Me
- hdu 1219 AC Me
- HDU 1219 AC Me
- hdu 1219 AC Me
- HDU 1219 AC Me
- hdu-1219-AC Me
- HDU 1219AC Me
- HDU 1219 AC Me
- hdu 1219 AC Me
- hdu-1219 AC Me
- HDU 1219 AC Me
- HDU 1219 AC Me
- HDU 1219 AC Me
- hdu-oj 1219 AC Me
- 杭电 HDU 1219 java AC Me
- HDU 1219 AC Me(字母统计)
- HDU-1219 AC Me (水)
- hdu 2098 分拆素数和
- Google Chrome浏览器点击 input file上传按钮时延迟较长
- 先码后看 java的volatile关键字 侵立删
- 2017 ACM-ICPC GSM Base Station Identification
- 单例模式
- HDU 1219 AC Me
- 关于spring中 @Aspect的不起作用的问题
- Facebook 服软,这周把 React 协议改成 MIT你还会用吗?
- 总结:sklearn机器学习之特征工程
- python调用shell命令
- Android面试题
- CF855E,状压数位DP
- 免费地图下载流量如何领取?
- Python3文件io操作