<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>betrue12</author_name>
  <author_url>https://blog.hatena.ne.jp/betrue12/</author_url>
  <blog_title>ARMERIA</blog_title>
  <blog_url>https://betrue12.hateblo.jp/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>プログラミング</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>お題箱より。 F - Count Permutations Many Times 難しめの（とはいえ上級者には比較的知名度が高い）テクニックを複数使いこなす必要がある問題です。公式解説では多項式の係数に対応させて解いていますが、そうではない方法で説明しようと思います。 解法 まずは1つのクエリだけを考える まずはこの問題を、あるクエリ（区間） 1つだけについて解くことを考えましょう。 「 である」よりも「 である（違反状態である）」のほうが数えやすいので、包除原理を適用します。 個の整数の集合を として、その部分集合 を考えます。 に含まれる整数が全て違反状態である（含まれない整数はどちらでも…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2019%2F12%2F24%2F010258&quot; title=&quot;第一回日本最強プログラマー学生選手権決勝 F - Count Permutations Many Times - ARMERIA&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://chart.apis.google.com/chart?cht=tx&amp;chl=%20%28L%2C%20R%29</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-24 01:02:58</published>
  <title>第一回日本最強プログラマー学生選手権決勝 F - Count Permutations Many Times</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2019/12/24/010258</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
