<?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 - Distributing Integers 解法 「頂点に整数を書く」だと少し図示しづらいので、代わりに「頂点番号の書いたボールを処理する順番に並べる」として考えることにします。 最初にボールを置く頂点を根付き木の根とします。まずは根を頂点 に固定して問題を解くことにしましょう。以下のような木DPを組みます。 グラフが頂点 以下の部分木だけしかないと仮定した時に、最初に頂点 のボールを置き、ルールに沿って部分木全ての頂点のボールを置くときの並べ方の数 これを葉から順番に計算していきます。根 についての答えは になります。 の計算方法を考えます。頂点 の子を と書くことにします。この時の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2020%2F03%2F29%2F001927&quot; title=&quot;AtCoder Beginner Contest 160 F - Distributing Integers - 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=%201</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-29 00:19:27</published>
  <title>AtCoder Beginner Contest 160 F - Distributing Integers</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2020/03/29/001927</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
