<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>betrue12</author_name>
  <author_url>https://blog.hatena.ne.jp/betrue12/</author_url>
  <blog_title>ARMERIA</blog_title>
  <blog_url>https://betrue12.hateblo.jp/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>プログラミング</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>F - path pass i 公式解説とは違う方法で、計算量は であまり良くないのですが、私が解いた解法をまとめておきます。 解説 「通らないもの」を数える 頂点数が であるとき、単純パスの総数は 個です。色 について解く時には、この総数から「色 の頂点を通らないもの」の個数を引くことにします。 色 の頂点を除いて木をいくつかの部分木に分解すると、異なる部分木間のパスは必ず色 の頂点を含みます。そして各部分木の内部で、頂点数 とすると色 の頂点を通らない単純パスが 個できます。これを合計すれば良いので、つまり各色についてその色の頂点で切ってできる各部分木のサイズが分かれば良いです。 今回はこ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2020%2F04%2F20%2F002624&quot; title=&quot;AtCoder Beginner Contest 163 F - path pass i（マージテク解法） - ARMERIA&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>https://chart.apis.google.com/chart?cht=tx&amp;chl=%20O%28N%28%5Clog%20N%29%5E%7B2%7D%29</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-20 00:26:24</published>
  <title>AtCoder Beginner Contest 163 F - path pass i（マージテク解法）</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2020/04/20/002624</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
