<?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>
    <anon>ライブラリ</anon>
  </categories>
  <description>Quiz https://atcoder.jp/contests/agc039/tasks/agc039_b AC✅ (解法：二部グラフ判定＆グラフの直径） https://atcoder.jp/contests/agc039/submissions/7879736 解法 解説放送の通り、二部グラフ判定し、二部グラフなら構成可能 構成可能な場合、グラフの直径＋１が答え 必要なコードは 二部グラフ判定 グラフの直径 二部グラフ判定については、蟻本p94にある通りdfsする グラフの直径については、ワーシャルフロイドして全点間距離を求め、その中の最大値が直径 const int N_MAX = 2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2019%2F10%2F06%2F074308&quot; title=&quot;B - Graph Partition ～二部グラフ判定＆&amp;quot;グラフの&amp;quot;直径(by WF)～ - 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>https://cdn-ak.f.st-hatena.com/images/fotolife/p/peroon/20191006/20191006074002.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-06 07:43:08</published>
  <title>B - Graph Partition ～二部グラフ判定＆&quot;グラフの&quot;直径(by WF)～</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2019/10/06/074308</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
