<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
    <anon>数え上げ問題</anon>
    <anon>分割数</anon>
    <anon>賢い漸化式</anon>
    <anon>考察：変数変換</anon>
    <anon>写像12相</anon>
  </categories>
  <description>分割数で鮮やかに解ける！ 問題へのリンク 問題概要 人のクラスで総額 円を集めることにした。 このクラスの生徒は皆見栄っ張りであり、出席番号順が１つ前の生徒に比べて 円以上高い金額を寄付しないと気が済まない。 この条件を満たす方法の個数を 1000000007 で割ったあまりを求めよ。 制約 考えたこと 生徒番号を とし、生徒 の支払額を とする。 このとき、条件は と書ける。ここで、次の変数 を考える。 このとき、上記の条件は となる。この条件を満たす の個数は、分割数を用いて と求められる。計算量は となる。 qiita.com コード #include &lt;bits/stdc++.h&gt; u…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2023%2F05%2F07%2F170054&quot; title=&quot;yukicoder No.269 見栄っ張りの募金活動 - けんちょんの競プロ精進記録&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.user.blog.st-hatena.com/default_entry_og_image/80936665/1516148889515660</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-05-07 17:00:54</published>
  <title>yukicoder No.269 見栄っ張りの募金活動</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2023/05/07/170054</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
