<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bouzuya</author_name>
  <author_url>https://blog.hatena.ne.jp/bouzuya/</author_url>
  <blog_title>bouzuya.hatenablog.com</blog_title>
  <blog_url>https://bouzuya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>デンソークリエイトプログラミングコンテスト2022 ( ABC239 : AtCoder Beginner Contest 239 ) F - Construct Highway を解いた。 問題: https://atcoder.jp/contests/abc239/tasks/abc239_f 本番では解けなかった。 N 頂点 N - 1 辺で連結なので木になることは分かった。入次数・出次数の和は 2 * (N - 1) なのも分かる。 D_i の和が 2 * (N - 1) でない場合は NG 。 DSU (Union-Find) を使って連結成分を調べた。既存の辺が連結済みの頂点を再度…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2022%2F02%2F21%2F214757&quot; title=&quot;ABC239 F - Construct Highway を解いた - bouzuya.hatenablog.com&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>2022-02-21 21:47:57</published>
  <title>ABC239 F - Construct Highway を解いた</title>
  <type>rich</type>
  <url>https://bouzuya.hatenablog.com/entry/2022/02/21/214757</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
