<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>amifiable</author_name>
  <author_url>https://blog.hatena.ne.jp/amifiable/</author_url>
  <blog_title>あるエンジニアのAtCoder奮闘記</blog_title>
  <blog_url>https://ami-atcoder.hatenablog.com/</blog_url>
  <categories>
    <anon>競プロ</anon>
    <anon>AtCoder</anon>
    <anon>第二回全国統一プログラミング王決定戦予選</anon>
    <anon>B問題</anon>
    <anon>300点</anon>
    <anon>Go</anon>
  </categories>
  <description>irisruneです。前回扱った問題のアルゴリズム面についてもう少し解説したいと思います。 問題リンクと提出コードは前回記事を参照してください。 ami-atcoder.hatenablog.com 例えば以下のような入力について考えます。 6 0 1 1 2 2 3 すると、次のような木は条件を満たします。 ここで他にどのような木が条件を満たすかについて考えると、頂点1を根として頂点1から距離が短い順番に見ることで以下のように考えられます。 頂点1との距離が0の頂点の配置は1通りである。 頂点1との距離が0の頂点は頂点1ただ1つのみ存在することが木の存在条件である。 頂点1との距離が1の頂点…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fami-atcoder.hatenablog.com%2Fentry%2F20191113%2F1573630336&quot; title=&quot;AtCoder 第二回全国統一プログラミング王決定戦予選 B - Counting of Trees （再解説） (Go) - あるエンジニアのAtCoder奮闘記&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://cdn.user.blog.st-hatena.com/default_entry_og_image/154149487/1553670776372553</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-13 16:32:16</published>
  <title>AtCoder 第二回全国統一プログラミング王決定戦予選 B - Counting of Trees （再解説） (Go)</title>
  <type>rich</type>
  <url>https://ami-atcoder.hatenablog.com/entry/20191113/1573630336</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
