<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>phyllo_algo</author_name>
  <author_url>https://blog.hatena.ne.jp/phyllo_algo/</author_url>
  <blog_title>れどこだ目指すよ！　(；`・ω・）</blog_title>
  <blog_url>https://phyllo-algo.hatenadiary.org/</blog_url>
  <categories>
    <anon>とぷこだ</anon>
    <anon>過去問</anon>
  </categories>
  <description>問題 赤玉がr個、緑玉がg個、青玉がb個あり、以下のルールを上から順に繰り返す。 ・赤玉が残っていれば、赤玉を1つ取り除く ・緑玉が残っていれば、緑玉を1つ取り除く ・青玉が残っていれば、青玉を1つ取り除くしかし、合計数r+g+b=n個だったこととk回目に赤玉を取り除いたこと以外、忘れてしまった。 (r,g,b)の組み合わせとして何種類あり得るか。1 1 考え方 dp。単純に、dp[]=組み合わせの総数と考えると、 iの状態からi+1の状態を計算するには、 ・何回目か ・r,g,bの残り個数 ・何を最後に使ったか が考えられる。 「r,g,bの残り個数」は、区別せずに「r,g,bが残っているか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphyllo-algo.hatenadiary.org%2Fentry%2F20130517%2F1368802548&quot; title=&quot;SRM564 Div1 500 - れどこだ目指すよ！　(；`・ω・）&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-05-17 23:55:48</published>
  <title>SRM564 Div1 500</title>
  <type>rich</type>
  <url>https://phyllo-algo.hatenadiary.org/entry/20130517/1368802548</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
