We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf4780 commit adb894dCopy full SHA for adb894d
atcoder/convolution.hpp
@@ -22,11 +22,11 @@ struct fft_info {
22
std::array<mint, rank2 + 1> root; // root[i]^(2^i) == 1
23
std::array<mint, rank2 + 1> iroot; // root[i] * iroot[i] == 1
24
25
- std::array<mint, std::max(0, rank2 - 2 + 1)> rate2;
26
- std::array<mint, std::max(0, rank2 - 2 + 1)> irate2;
+ std::array<mint, std::max(0, rank2 - 1 + 1)> rate2;
+ std::array<mint, std::max(0, rank2 - 1 + 1)> irate2;
27
28
- std::array<mint, std::max(0, rank2 - 3 + 1)> rate3;
29
- std::array<mint, std::max(0, rank2 - 3 + 1)> irate3;
+ std::array<mint, std::max(0, rank2 - 2 + 1)> rate3;
+ std::array<mint, std::max(0, rank2 - 2 + 1)> irate3;
30
31
fft_info() {
32
root[rank2] = mint(g).pow((mint::mod() - 1) >> rank2);
0 commit comments