L1-003. 个位数统计
来源:互联网 发布:诺基亚e72i 软件下载 编辑:程序博客网 时间:2024/06/06 21:42
//ac
#include <iostream>#include <cstdlib>#include <stdio.h>#include <algorithm>#include <math.h>#include <string.h>#include <queue>#include <stack>#include <vector>#include <map>#include <set>typedef long long ll;using namespace std;int main(){ string s; int b[11]={0}; cin>>s; for (int i =0; i<s.size(); i++) { for (int j=0; j<=10; j++) { if(s[i]-'0'==j){ b[j]++; } } } for (int i=0; i<=9; i++) { if(b[i]){ printf("%d:%d\n",i,b[i]); } } return 0;}
0 0
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003. 个位数统计
- L1-003.个位数统计
- L1-003. 个位数统计
- slidingment
- 最大公约数
- 如何向微信服务器上传临时素材
- Oracle性能调优 AWR分析一例
- 2017/03/10 领导讲课内容总结
- L1-003. 个位数统计
- 布局优化
- Multiple annotations found at this line:
- mysql 5.7安装后忘记登录密码(Password字段不可用时)
- 关于Android Studio中动画文件夹anim无法创建animation-list失效问题
- 正则表达式
- css的常用布局方式
- N皇后问题C语言代码(不考虑棋盘对称)
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案