<?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>FFT</anon>
    <anon>数列</anon>
    <anon>数学(整数問題)</anon>
    <anon>各kに対して</anon>
    <anon>解空間:O(N^2)通りの選択肢</anon>
  </categories>
  <description>原始根 + NTT 問題へのリンク 問題概要 素数 と、数列 、 が与えられる。 各整数 に対して、 の値を 998244353 で割ったあまりを求めよ。 制約 考えたこと 添字積 convolution はできるのかと一瞬戸惑う。しかし が素数であることに着目すると、原始根 を介して「添字和 convolution」に持ち込める。 とすれば、 という関係に早変わりする。こうなれば通常の NTT で扱える。 計算量は 。 コード #include &lt;bits/stdc++.h&gt; using namespace std; // modint template&lt;int MOD&gt; struct Fp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2020%2F11%2F04%2F172300&quot; title=&quot;yukicoder No.931 Multiplicative Convolution - けんちょんの競プロ精進記録&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>2020-11-04 17:23:00</published>
  <title>yukicoder No.931 Multiplicative Convolution</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2020/11/04/172300</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
