<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AtCoder500点</anon>
    <anon>ABC-E</anon>
    <anon>構築</anon>
    <anon>考察：補集合を考える</anon>
    <anon>最適化の考察：「≦ K であること」と「= K となる実例」を示す</anon>
    <anon>グラフ</anon>
    <anon>水色diff</anon>
    <anon>制約条件:距離K以下の2頂点</anon>
    <anon>木の問題に対してパスの場合から考える</anon>
    <anon>NoviSteps1Q</anon>
  </categories>
  <description>順位表メタ読みスキルも大事かもしれない。「たくさん通しているのだから、きっと単純な方法があるに違いない」という感じの 問題へのリンク 問題概要 頂点の連結な無向グラフのうち、その間の最短経路長が 2 となっているような二頂点の組がちょうど 組であるようなものを構築せよ。 存在しない場合は -1 と出力せよ。 制約 考えたこと この手の構築を安定して解くためには、まず典型的なグラフたちに対して「最短経路長が 2 となる組数はどうなってるか」を観察するのが良さそうな気がする。そんな代表的なグラフとして パス スターグラフ (今回の肝...今回に限らず検討すべきグラフ！！！) 完全グラフ 完全二部グ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2019%2F06%2F22%2F232000&quot; title=&quot;AtCoder ABC 131 E - Friendships (1Q, 水色, 500 点) - けんちょんの競プロ精進記録&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/d/drken1215/20190622/20190622230718.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-22 23:20:00</published>
  <title>AtCoder ABC 131 E - Friendships (1Q, 水色, 500 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2019/06/22/232000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
