<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomerun</author_name>
  <author_url>https://blog.hatena.ne.jp/tomerun/</author_url>
  <blog_title>TopCoderの学習のお時間</blog_title>
  <blog_url>https://topcoder-tomerun.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>AHC052 や AHC023 のように、グリッドのマスの間に壁があるような問題について。 壁の情報は bool wall[H][W][4] として、wall[y][x][dir] が「マス (y,x) から dir 方向に壁がある」を表すようにすると扱いやすいです。 グリッドの外に出れない制約も、wall[0][x][UP] = true などのようにグリッドの最も外側のマスから外に向かう方向に壁があるとすることで自然に表現できます。 Rustでの実装例 const N: usize = 30; const UP: usize = 0; const RIGHT: usize = 1; con…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftopcoder-tomerun.hatenablog.jp%2Fentry%2F2025%2F08%2F25%2F092450&quot; title=&quot;壁の持ち方 - TopCoderの学習のお時間&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>2025-08-25 09:24:50</published>
  <title>壁の持ち方</title>
  <type>rich</type>
  <url>https://topcoder-tomerun.hatenablog.jp/entry/2025/08/25/092450</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
