<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yosupo</author_name>
  <author_url>https://blog.hatena.ne.jp/yosupo/</author_url>
  <blog_title>よすぽの日記</blog_title>
  <blog_url>https://yosupo.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>概要 遺跡発掘？ 何種類かのn個の建物があり、K個選ぶ。選んだ建物の種類一覧が与えられる。選び方は何通り？ サンプル 建物:{1, 2, 2, 1} 種類:{1, 2} 数:2 1, 2, 2, 1の中から2個選び出したら、1と2が入っていた(つまり1と2だった)選び方は？ もちろん(1の選び方)*(2の選び方)=2*2=4 建物:{1, 2, 2, 1} 種類:{1} 数:2 2個選んだら、1のみが入っていた つまり両方1だったという事なので1通り 制約 建物の種類は1~50 1≦n≦50 1≦k≦n 解法 DP d[i][j]:i番目までの種類でk個選ぶ選び方 d[i][j] = Σ(dp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosupo.hatenablog.com%2Fentry%2F2013%2F07%2F18%2F001908&quot; title=&quot;TopCoder SRM584 Div2 Hard Excavastions2 - よすぽの日記&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>2013-07-18 00:19:08</published>
  <title>TopCoder SRM584 Div2 Hard Excavastions2</title>
  <type>rich</type>
  <url>https://yosupo.hatenablog.com/entry/2013/07/18/001908</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
