<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
  </categories>
  <description>問題 abc003.contest.atcoder.jp 解法 ちょっとアホな方法で通してしまったんですが, 後で紹介します。まず前提として, この問題は結局「X*Y の長方形を作るように D+L 個の物体を配置する方法は何通りあるのか」というのが求められれば, あとはそれに comb[D+L][D] * (R-X+1) * (C-Y+1) をかけるだけで問題が解けます。想定解は多分包除原理です。 例えば「X*Y の長方形の上の辺に絶対頂点が存在しない場合」などを考えて, 「X*Y の長方形の好きなところに頂点を並べた場合」から引くことを考えます。ただ, これだと「X*Y の長方形の上と下の辺…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F03%2F22%2F234510&quot; title=&quot;AtCoder Beginner Contest 003 D - AtCoder社の冬 - mayoko’s diary&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>2016-03-22 23:45:10</published>
  <title>AtCoder Beginner Contest 003 D - AtCoder社の冬</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/03/22/234510</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
