<?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>AOJ</anon>
  </categories>
  <description>解法 BFSして、'o' と '*' 間に張ることの出来る全てのエッジのコストを求める。汚れたタイル '*' は高々10個なので、ロボットの位置のノードを含めて最大11個のノードで巡回セールスマン問題を解く。反省 コード量が多くなってきたときに、マップなどのコンテナの初期化を忘れるというミスがあった。また、グリッドサイズの入力が H, W の順ではなく W, H の順であったのでバグを作ってしまった。本番ではこういうミスはしないようにしたい。 #include &lt;bits/stdc++.h&gt; using namespace std; #define rep(i,n) for(int i=0;i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140528%2F1401287966&quot; title=&quot;AOJ1140 Cleaning Robot - 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-05-28 23:39:26</published>
  <title>AOJ1140 Cleaning Robot</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140528/1401287966</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
