Skip to content

Commit 748a564

Browse files
committed
fix
1 parent c386003 commit 748a564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atcoder/convolution.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void butterfly_inv(std::vector<mint>& a) {
130130
auto r = a[i + offset + p];
131131
a[i + offset] = l + r;
132132
a[i + offset + p] =
133-
(unsigned long long)(mint::mod() + l.val() - r.val()) *
133+
(unsigned long long)((unsigned int)(l.val() - r.val()) + mint::mod()) *
134134
irot.val();
135135
;
136136
}

0 commit comments

Comments
 (0)