Skip to content

Commit a649af5

Browse files
committed
1 parent 8693524 commit a649af5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"java.project.sourcePaths": [
3+
"Convolution",
4+
"ModInt"
5+
]
6+
}

Convolution/Convolution.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private static long[] sumE(int mod, int g) {
125125
ie = ie * ie % mod;
126126
}
127127
long now = 1;
128-
for (int i = 0; i < cnt2 - 2; i++) {
128+
for (int i = 0; i <= cnt2 - 2; i++) {
129129
sum_e[i] = es[i] * now % mod;
130130
now = now * ies[i] % mod;
131131
}
@@ -154,7 +154,7 @@ private static long[] sumIE(int mod, int g) {
154154
ie = ie * ie % mod;
155155
}
156156
long now = 1;
157-
for (int i = 0; i < cnt2 - 2; i++) {
157+
for (int i = 0; i <= cnt2 - 2; i++) {
158158
sum_ie[i] = ies[i] * now % mod;
159159
now = now * es[i] % mod;
160160
}

0 commit comments

Comments
 (0)