设为首页 加入收藏

TOP

POJ 2418 Hardwood Species(字典树)(二)
2015-11-21 01:03:21 来源: 作者: 【 】 浏览:5
Tags: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
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇[BZOJ1146]CTSC2008网络管理|树上.. 下一篇POJ - 1458 - Common Subsequence..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: