<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Area1</author_name>
  <author_url>https://blog.hatena.ne.jp/Area1/</author_url>
  <blog_title>Area1のif(memo[i][j])</blog_title>
  <blog_url>https://area.hateblo.jp/</blog_url>
  <categories>
    <anon>POJ</anon>
  </categories>
  <description>問題 木の名前がいくつか入力される。各木の種類について、それが入力された総数のうち何%を占めているか木の名前のアルファベット順にパーセンテージで出力せよ。 やりかた mapに木の名前と出現数を入れて総数で割って、、、というだけ。入力はgetsを使えば余裕で通る。以下ソース。 int main(int argc, char **argv){ char tree[256]; map&lt;string, int&gt; p; int num = 0; while(gets(tree)){ p[string(tree)]++; num++; } map&lt;string, int&gt;::iterator it = p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farea.hateblo.jp%2Fentry%2F2016%2F11%2F13%2F210257&quot; title=&quot;POJ 2418 Hardwood Species - Area1のif(memo[i][j])&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-11-13 21:02:57</published>
  <title>POJ 2418 Hardwood Species</title>
  <type>rich</type>
  <url>https://area.hateblo.jp/entry/2016/11/13/210257</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
