分治NTT——P4721
分治NTT,套了个dls自动取模的整数板子,但常数过大。
#include <assert.h>
#include <cstdio>
#include <iostream>
using namespace std;
using ll = long long;
const int NR = 1 << 21;
const int G = 3, Gi = 332748118;
const int mod = 998244353;
template <int MOD, int RT>
st
more...