<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eityans</author_name>
  <author_url>https://blog.hatena.ne.jp/eityans/</author_url>
  <blog_title>壁とかパズルとか</blog_title>
  <blog_url>https://eityans.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
    <anon>Java</anon>
  </categories>
  <description>問題文：C - Numbering Blocks 解説を見ると全探索か深さ優先探索で解いている人が多く、DPで解いている人があまりいなさそうだったのでメモを残します。 考察 以下のイメージです。 dp[i][j][k]を次で定義する のときの条件を満たす数字の書き込み方の数 DP遷移 dp[i][j][k] = dp[i-1][j][k] + dp[i][j-1][k] + dp[i][j][k-1] 初期値 dp[1][0][0] = 1; dp[1][1][0] = 1; dp[1][1][1] = 1; の条件に注意 コード*1 int a1 = scan.nextInt(); int …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feityans.hatenablog.com%2Fentry%2F2020%2F04%2F06%2F000407&quot; title=&quot;C - Numbering Blocks - 壁とかパズルとか&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/e/eityans/20200405/20200405234305.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-06 00:04:07</published>
  <title>C - Numbering Blocks</title>
  <type>rich</type>
  <url>https://eityans.hatenablog.com/entry/2020/04/06/000407</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
