diff --git a/atcoder/convolution.hpp b/atcoder/convolution.hpp index 20a9355..de3f1ae 100644 --- a/atcoder/convolution.hpp +++ b/atcoder/convolution.hpp @@ -130,7 +130,7 @@ void butterfly_inv(std::vector& a) { auto r = a[i + offset + p]; a[i + offset] = l + r; a[i + offset + p] = - (unsigned long long)(mint::mod() + l.val() - r.val()) * + (unsigned long long)((unsigned int)(l.val() - r.val()) + mint::mod()) * irot.val(); ; }