<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
    <anon>アルゴリズム学習</anon>
    <anon>木の重心</anon>
  </categories>
  <description>重心分解を利用すると効果的に解ける具体的な問題を通して理解を深める。木の重心学習シリーズの直近の記事は以下に掲載。 junkobayashi.hatenablog.com 問題のページ ABC291 Ex - Balanced Tree 問題概要 \(N\)頂点の木\(T\)が与えられ、\(i\)番目の辺は頂点\((A_i,B_i)\)の間を結んでいる。この時、以下の条件を全て満たす根付き木\(R\)を一つ求め、\(R\)における頂点\(j\)の親を\(p_j\)と表す時における\(p_j\)を（\(j\)が根ならば\(-1\)を）全て空白区切りで出力せよ。 \(R\)における任意の2頂点\(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2026%2F11%2F06%2F044319&quot; title=&quot;木の重心を理解する(2：ABC291 Ex - Balanced Tree) - JunKobayashi&amp;#39;s Diary&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-ak.f.st-hatena.com/images/fotolife/J/JunKobayashi/20261106/20261106034313.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-11-06 04:43:19</published>
  <title>木の重心を理解する(2：ABC291 Ex - Balanced Tree)</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2026/11/06/044319</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
