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 c386003 commit 748a564Copy full SHA for 748a564
atcoder/convolution.hpp
@@ -130,7 +130,7 @@ void butterfly_inv(std::vector<mint>& a) {
130
auto r = a[i + offset + p];
131
a[i + offset] = l + r;
132
a[i + offset + p] =
133
- (unsigned long long)(mint::mod() + l.val() - r.val()) *
+ (unsigned long long)((unsigned int)(l.val() - r.val()) + mint::mod()) *
134
irot.val();
135
;
136
}
0 commit comments