<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://atcoder.jp/contests/dp/tasks/dp_y 前提知識 包除原理 解説 https://atcoder.jp/contests/dp/submissions/3956127同様の包除原理問題を見たことがあったから、包除原理で解くと分かったので、考察過程は無いです。 わかりやすさのために段階的に解説する。 あと、mod10^9+7上でのC(a,b)は計算できるものとして進める。 C(a,b)は二項定理。 dp[i][ng] := i番目の壁のマスにいて、(1,1)から壁のマスをng回以上訪れている組み合わせ 0番目の壁のマスを(1,1)として、N+1番目の壁…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F01%2F12%2F160257&quot; title=&quot;Grid 2 [Educational DP Contest / DP まとめコンテスト Y] - はまやんはまやんはまやん&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>2019-01-12 16:02:57</published>
  <title>Grid 2 [Educational DP Contest / DP まとめコンテスト Y]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/01/12/160257</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
