<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JAPLJ</author_name>
  <author_url>https://blog.hatena.ne.jp/JAPLJ/</author_url>
  <blog_title>J * A * P * L * J</blog_title>
  <blog_url>https://japlj.hatenablog.com/</blog_url>
  <categories>
    <anon>Algorithm</anon>
  </categories>
  <description>いろいろ忘れないようにメモ✍しておくとよさそうなので書いておきます。 やること に対して 以下の奇数をすべて乗算した奇数階乗 (奇数に対する二重階乗)\begin{align} (2n-1)!! = 1 \cdot 3 \cdot 5 \cdot \cdots (2n-3)(2n-1) \end{align}を で高速に求めます。具体的には として 時間です。ここで の部分は多項式の乗算と平行移動 ( の係数から の係数を求める) にかかります。 やりかた ソースコードです。Petrozavodsk Camp の問題で出たんですがジャッジがどこか分からない……。いちおう の範囲で愚直なのと比較…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjaplj.hatenablog.com%2Fentry%2F2018%2F04%2F07%2F132344&quot; title=&quot;(2n-1)!! (奇数階乗) を mod 2^64 で求める - J * A * P * L * J&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=%20n%20%5Cgeq%201</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-04-07 13:23:44</published>
  <title>(2n-1)!! (奇数階乗) を mod 2^64 で求める</title>
  <type>rich</type>
  <url>https://japlj.hatenablog.com/entry/2018/04/07/132344</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
