<?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>プログラミング</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>先日やっていたバチャで出てきたので、まとめておきます。 この記事では二項係数を と表記します。また法を とします。 はじめに が必要となる の最大値をそれぞれ として、 や が許される制約であれば、パスカルの三角形で全部計算できます。こちらのほうが圧倒的に楽なので間に合う場合はこちらを使いましょう。 vector&lt;vector&lt;int64_t&gt;&gt; comb(N+1, vector&lt;int64_t&gt;(N+1)); for(int i=0; i&lt;=N; i++){ comb[i][0] = comb[i][i] = 1; for(int j=1; j&lt;i; j++) comb[i][j] = (c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2020%2F02%2F23%2F173513&quot; title=&quot;合成数modでの二項係数を用いた数え上げ - 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_%7Bn%7DC_%7Bk%7D</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-23 17:35:13</published>
  <title>合成数modでの二項係数を用いた数え上げ</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2020/02/23/173513</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
