<?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>AtCoder</anon>
    <anon>プログラミング</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>C - Permutation City 解法 木にする まずはグラフの形を簡単にします。距離に関する条件が「1または2である」ということ、そして「条件を満たす順列は必ず存在する」と書かれていることから、 連結性を保ったままいくつかの辺を削除しても、変化後のグラフに対する答えは存在する。 変化後のグラフに対して求めた答えは、元のグラフに対する答えにもなっている。 ことが分かります。2番目の性質は、変化後のグラフで距離が1または2である頂点対は、辺を足して元のグラフに戻しても距離が1または2であることから分かります。 そのため考えやすいように木にしてしまいましょう。例えばUnion-Findを用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2019%2F03%2F10%2F194224&quot; title=&quot;早稲田大学プログラミングコンテスト2019 C - Permutation City - 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-ak.f.st-hatena.com/images/fotolife/b/betrue12/20190310/20190310192606.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-10 19:42:24</published>
  <title>早稲田大学プログラミングコンテスト2019 C - Permutation City</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2019/03/10/194224</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
