<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>rank付きUFとは違う。rankは木の高さなので サイズはグループの根に保存されるとする size : 木の頂点数 統合ルール sizeの大きい方に統合する sizeが同じ場合は数値の小さい方に統合 // サイズ付きUF struct UnionFind{ VI parent; VI size; // グループのサイズ(rankとは違う) UnionFind(ll sz){ parent.resize(sz); size.resize(sz, 1); reset(); } void reset(){ FOR(i, 0, parent.size()){ parent[i] = i; size[…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2020%2F07%2F09%2F154646&quot; title=&quot;サイズ付きUnion Find with size - perogram&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>2020-07-09 15:46:46</published>
  <title>サイズ付きUnion Find with size</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2020/07/09/154646</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
