poj 2418 Hardwood Species(使用STL map)
来源:互联网 发布:彩虹秒赞 v7源码 编辑:程序博客网 时间:2024/05/01 11:38
//poj 2418 Hardwood Species(使用STL map)#include<iostream>#include<cstdio>#include<string>#include<iostream>#include<map>using namespace std;map<string,int> mp;map<string,int>::iterator it;int main(){ char a[33]; string str; int n=0; while(gets(a)!=NULL) { str=a; mp[str]++; n++; } for(it=mp.begin();it!=mp.end();it++) { cout<<it->first<<" "; printf("%0.4lf\n",((double)(it->second)/(double)n)*100); } return 0;}
0 0
- poj 2418 Hardwood Species(使用STL map)
- 【STL】POJ 2418---Hardwood Species
- POJ 2418 Hardwood Species 【STL】
- poj 2418 Hardwood Species (map)
- POJ 2418 Hardwood Species(map)
- POJ 2418--Hardwood Species【map】
- POJ 2418 Hardwood Species(STL中map的应用)
- POJ 2418 Hardwood Species(STL map or Trie tree)
- POJ 2418 Hardwood Species(map)
- POJ 2418 Hardwood Species (map练习)
- POJ 2418-Hardwood Species(map)
- POJ 2418 Hardwood Species(map运用)
- POJ 题目2418 Hardwood Species(map)
- POJ 2418 Hardwood Species (字典树||MAP)
- POJ 2418 Hardwood Species (trie树\map)
- POJ 2418 Hardwood Species【字典树 / map】
- (使用STL自带的排序功能7.1.1)POJ 2418 Hardwood Species(map的定义、访问、迭代)
- poj 2418 Hardwood Species
- [Python]collections模块中的Counter类
- poj 2524 Ubiquitous Religions
- 阿斯顿发送到发撒的发松岛枫
- Erlang的并行编译与加密
- 六种PHP图片上传重命名方案研究与总结
- poj 2418 Hardwood Species(使用STL map)
- Android 中发一个intent启动多个应用,去掉always菜单技巧
- 阿斯顿发送到发十八式的发生大发
- 2014新生暑假个人排位赛04 C. 崔逗逗的难题
- MFC中客户区和非客户区概念的图示
- C++ 模板特化
- (转 推荐)c++ ActiveX基础1:使用VS2010创建MFC ActiveX工程项目
- 自动化的在程序中显示SVN版本
- 辩论,潜台词音频