COJ 1373 STL中的map每日四水
来源:互联网 发布:mysql如何查看 编辑:程序博客网 时间:2024/06/05 04:41
统计字母,水题……
#include <iostream>#include <algorithm>#include <map>#include <set>#include <deque>#include <queue>#include <stack>#include <string>#include <cstring>#include <cstdio>#include <cmath>using namespace std;int main(){ map<char,int>p; map<char,int>::iterator it; char k,a[101][101]; int n,i,j; for(k='A';k<='Z';k++) p[k]=0; cin>>n; for(i=0;i<n;i++) for(j=0;j<n;j++) { cin>>a[i][j]; p[a[i][j]]++; } for(it=p.begin();it!=p.end();it++) cout<<it->first<<": "<<it->second<<endl; return 0;}
- COJ 1373 STL中的map每日四水
- COJ 1236 STL中的map每日二水
- COJ 1151 STL中的stack每日一水
- COJ 1285 STL中的map每日三水(无限个输入按哪个快捷键得输出)
- COJ 1383 STL中的set
- STL中的Map(缩略)
- STL中的map详解
- stl中的Map
- 初识STL中的map
- STL中的map容器
- STL 中的map讲解
- STL中的set&&map
- STL中的map使用
- STL 中的Map用法
- STL中的map用法详解
- STL中的map用法详解
- STL中的map用法详解
- STL中的map用法详解
- red hat 企业版更新源的添加
- 解读Python内存管理机制
- c++词法分析器
- Foreign Language_english_限定词
- 帧动画和旋转
- COJ 1373 STL中的map每日四水
- A star 寻路算法实现(C++版本)
- 【PAT Advanced Level】1006. Sign In and Sign Out (25)
- hashCode和equals方法的理解
- 编写一个字符串复制函数mystrcopy(char*s1,char*s2,int m),将字符串s2中从第m个开始全部字符都复制到s1中
- hdu4762之大数乘法
- uva 10562
- Trystack中文网为您提供最后一次优惠机会(门票七五折)
- Eclipse下配置主题颜色