<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>CodeForces</anon>
  </categories>
  <description>問題 codeforces.com 解法 さっきの問題とよく似ています。 mayokoex.hatenablog.comまず, 頂点 0 からつながる頂点を列挙します。これが k 個以下だったら impossible です。で, それらの点からスタートして, 0 以外の頂点となるべく連結させていきます。これは, さっきの問題と同じような方法で出来ます(相変わらず (u, v) が繋げないかどうかの判定はたかだか 2 回しかしないので計算量は O(M log M))。あとは判定ですが, 頂点 0 から他の頂点に伸ばす必要のある最低本数が k 以下であれば良いです。これは, さっきの作業で出来た連…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F03%2F21%2F143817&quot; title=&quot;IndiaHacks 2016 - Online Edition E. Bear and Forgotten Tree 2 - mayoko’s diary&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>2016-03-21 14:38:17</published>
  <title>IndiaHacks 2016 - Online Edition E. Bear and Forgotten Tree 2</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/03/21/143817</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
