<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>emtubasa</author_name>
  <author_url>https://blog.hatena.ne.jp/emtubasa/</author_url>
  <blog_title>ツバサの備忘録</blog_title>
  <blog_url>https://emtubasa.hateblo.jp/</blog_url>
  <categories>
    <anon>数え上げ</anon>
    <anon>累積和</anon>
  </categories>
  <description>問題 提出コード 解法 集合を、集合0、集合1とし、をとします。 番目の要素まで見て、番目の要素を集合に入れるような振り分け方のパターン数 を数えます。 という区間が集合に入り、その前後はもう片方の集合に振り分けられるパターンを考えます。このような操作ができる条件は、 の二つを満たすことです。 逆に、これらの条件を満たすについて、を集合に入れる、という操作ができるので、 という遷移が考えられます。 1つめの条件は、それぞれのについて二分探索を用いて計算ができます。 となるようなを二分探索で求めます。すると、 として選べるのは以下です。 2つめの条件は前計算ができます。 となるようなで区間を区切…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Femtubasa.hateblo.jp%2Fentry%2F2020%2F07%2F03%2F114935&quot; title=&quot;AGC009 C - Division into Two - ツバサの備忘録&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.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-03 11:49:35</published>
  <title>AGC009 C - Division into Two</title>
  <type>rich</type>
  <url>https://emtubasa.hateblo.jp/entry/2020/07/03/114935</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
