<?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>Codeforces</anon>
    <anon>プログラミング</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>Problem - D - Codeforces コンテスト中に自分が通した解法を書きます。 問題概要 頂点 辺の無向グラフが与えられ、頂点 には相異なる整数 が書かれている。 以下のクエリを合計 個処理せよ。 1 v：頂点 と連結な頂点の中で最も大きい整数が書かれている頂点 を探し、 を出力する。その後、 に書かれている整数を に書き換える。 2 i：辺 を削除する。 制約 解法 辺を削除するクエリなので、逆から見ていけばUnion-Findが使えます。一方クエリ1に答えるためには「それ以前のクエリでどの整数が既に取られているか」の情報が必要なので、前から処理していく必要があります。 よって…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2020%2F09%2F28%2F195959&quot; title=&quot;Codeforces Round #673 (Div. 1) D. Graph and Queries - 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://cdn.user.blog.st-hatena.com/default_entry_og_image/106916089/1592411661884548</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-28 19:59:59</published>
  <title>Codeforces Round #673 (Div. 1) D. Graph and Queries</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2020/09/28/195959</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
