✎
编程开发网
首页
C语言
C++
面试
Linux
函数
Windows
数据库
下载
搜索
当前位置:
首页
->
AI编程基础
->
c++编程基础
POJ 2418 Hardwood Species(字典树)(二)
2015-11-21 01:03:21
·
作者:
·
浏览:
18
标签:
POJ
2418
Hardwood
Species
字典
de
#include
#include
#include
using namespace std; int main() { string str; int tot=0; map
mp; while(getline(cin,str)){ mp[str]++; tot++; } map
::iterator it; for(it=mp.begin();it!=mp.end();it++){ cout<
first; printf(" %.4f\n",(double)it->second/tot*100); } return 0; }
快排也能过。。
首页
上一页
1
2
下一页
尾页
2
/2/2