{"provider_url":"https://hatena.blog","width":"100%","type":"rich","title":"POJ 2418 Hardwood Species","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Farea.hateblo.jp%2Fentry%2F2016%2F11%2F13%2F210257\" title=\"POJ 2418 Hardwood Species - Area1\u306eif(memo[i][j])\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["POJ"],"description":"\u554f\u984c \u6728\u306e\u540d\u524d\u304c\u3044\u304f\u3064\u304b\u5165\u529b\u3055\u308c\u308b\u3002\u5404\u6728\u306e\u7a2e\u985e\u306b\u3064\u3044\u3066\u3001\u305d\u308c\u304c\u5165\u529b\u3055\u308c\u305f\u7dcf\u6570\u306e\u3046\u3061\u4f55%\u3092\u5360\u3081\u3066\u3044\u308b\u304b\u6728\u306e\u540d\u524d\u306e\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u9806\u306b\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u3067\u51fa\u529b\u305b\u3088\u3002 \u3084\u308a\u304b\u305f map\u306b\u6728\u306e\u540d\u524d\u3068\u51fa\u73fe\u6570\u3092\u5165\u308c\u3066\u7dcf\u6570\u3067\u5272\u3063\u3066\u3001\u3001\u3001\u3068\u3044\u3046\u3060\u3051\u3002\u5165\u529b\u306fgets\u3092\u4f7f\u3048\u3070\u4f59\u88d5\u3067\u901a\u308b\u3002\u4ee5\u4e0b\u30bd\u30fc\u30b9\u3002 int main(int argc, char **argv){ char tree[256]; map<string, int> p; int num = 0; while(gets(tree)){ p[string(tree)]++; num++; } map<string, int>::iterator it = p\u2026","published":"2016-11-13 21:02:57","blog_title":"Area1\u306eif(memo[i][j])","version":"1.0","image_url":null,"url":"https://area.hateblo.jp/entry/2016/11/13/210257","height":"190","author_name":"Area1","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/Area1/","blog_url":"https://area.hateblo.jp/"}