<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiko3r</author_name>
  <author_url>https://blog.hatena.ne.jp/hiko3r/</author_url>
  <blog_title>Hoi_koro memo</blog_title>
  <blog_url>https://hoikoro.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AGC</anon>
  </categories>
  <description>agc002.contest.atcoder.jp 問題 グラフ中の辺に番号がつけられている。クエリが与えられるので、「辺のみを残した部分グラフ中で頂点集合またはから到達可能な頂点が個以上になる」ようなの最小値を各について求めよ。 解法 愚直にやるなら各クエリに対してN要素のUnion-Findを作り、辺1から順に両端の頂点をuniteしていく。到達可能な頂点数（とが非連結なら）が以上になる時の辺番号が答えとなる。でTLE。 愚直手法ではuniteしてを調べる操作をクエリあたり回もループしているので、平方分割によりこれを減らせば間に合う。あらかじめまでuniteした個のUnion-Findを構…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhoikoro.hatenablog.com%2Fentry%2F2017%2F12%2F14%2F040750&quot; title=&quot;AtCoder AGC002 D Stamp Rally - Hoi_koro memo&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>http://chart.apis.google.com/chart?cht=tx&amp;chl=%7BT%7D</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-14 04:07:50</published>
  <title>AtCoder AGC002 D Stamp Rally</title>
  <type>rich</type>
  <url>https://hoikoro.hatenablog.com/entry/2017/12/14/040750</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
