<?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>ABCのE問題</anon>
    <anon>UnionFind</anon>
    <anon>ABC本番で敗北した問題</anon>
  </categories>
  <description>↓問題のページ↓ E - 1D Bucket Tool UnionFindを使うことで鮮やかに解くことができる一問。本番中の自分には欠片たりとも降って来ない発想だったが、それはおそらく「同じ連結成分に属する頂点たちについては、その連結成分の根に対する情報のみを更新するだけで全頂点に対しての情報を更新したことと等価になるため劇的に高速化できる」という感覚がまだ身に着いていないからなのだろう。本問を通してその感覚を養っていく。 基本的なUnionFindの実装としては、各頂点の親にあたる頂点番号と、各頂点が属する連結成分を構成している頂点の個数を保持しておくものがあるはずだが、本問ではUnionF…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2024%2F11%2F18%2F015433&quot; title=&quot;ABC380 E - 1D Bucket Tool - 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-18 01:54:33</published>
  <title>ABC380 E - 1D Bucket Tool</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2024/11/18/015433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
