<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishiohirokazu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishiohirokazu/</author_url>
  <blog_title>西尾泰和のはてなダイアリー</blog_title>
  <blog_url>https://nishiohirokazu.hatenadiary.org/</blog_url>
  <categories>
    <anon>TopCoder</anon>
  </categories>
  <description>友達関係のグラフを渡すので、「2ホップ以内の友達の数」が最も多い人の友達の数を返しなさいという問題。 vector&lt;string&gt; twof(friends); // copyこれでコピーを取れるのか(同一の文字列オブジェクトへの参照を持っているみたいな状態にならないか)不安で確認してしまうというLL脳。「コピーを作ってから、2ホップでつながっているところを1ホップに書き換えて、位数の最大値をとる」というアルゴリズムで解いた。 class FriendScore { public: int highestScore(vector &lt;string&gt; friends) { size_t N = f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20090311%2F1236775568&quot; title=&quot; Single Round Match 436 (Div2/250pt) - 西尾泰和のはてなダイアリー&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>2009-03-11 21:46:08</published>
  <title> Single Round Match 436 (Div2/250pt)</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20090311/1236775568</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
