Update number/fft.cc
This commit is contained in:
parent
9c625c0fd3
commit
a1dea908c1
|
@ -44,5 +44,6 @@ vector<int> multiply(const vector<int>& a, const vector<int>& b) {
|
||||||
fft(A, true);
|
fft(A, true);
|
||||||
vector<int> res(n);
|
vector<int> res(n);
|
||||||
transform(A.begin(), A.end(), res.begin(), expr(int(round(x.real())), auto&& x));
|
transform(A.begin(), A.end(), res.begin(), expr(int(round(x.real())), auto&& x));
|
||||||
|
res.resize(a.size() + b.size() - 1);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue