<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>問題 http://codeforces.com/contest/711/problem/Cn本の木がある。 これらの木をm種類の色で塗る。 木iは色C[i]で塗られているが、一部(C[i]=0のもの)は色が塗られていない。 塗られていない木に色を塗っていくのだが、木iに色jを塗るときはp[i][j]のインクが必要。 木達の美しさを隣り合う色が同じ木をまとめた成分数と定義する。 2,1,1,1,3,2,2,3,1,3 であれば、隣り合う色が同じ木をまとめると {2}, {1, 1, 1}, {3}, {2, 2}, {3}, {1}, {3} となり成分数は7なので、美しさは7この時塗られてい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2016%2F08%2F29%2F234734&quot; title=&quot;Coloring Trees [Codeforces 369 : Div2 C] - はまやんはまやんはまやん&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-08-29 23:47:34</published>
  <title>Coloring Trees [Codeforces 369 : Div2 C]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2016/08/29/234734</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
