<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>UVa</anon>
  </categories>
  <description>問題 首都(ノード1)から他の都市(ノード2〜n)にアクセス可能なように辺を建設する。各辺に建設コストがあり、建設に使える総コストは K 以内に収める必要がある。各ノードに人口が与えられるので、首都にアクセス可能な人口を最大化せよ。解法 アクセス可能なノードをビットで持ち、そのビットの状態をノードとしたグラフ上をダイクストラする。 #include &lt;iostream&gt; #include &lt;algorithm&gt; #include &lt;queue&gt; using namespace std; #define MAX_N (1000) #define INF (1&lt;&lt;29) int N, M, K; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140828%2F1409216381&quot; title=&quot;UVa12527 Kingdoms - Logfiles&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>2014-08-28 17:59:41</published>
  <title>UVa12527 Kingdoms</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140828/1409216381</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
