ACLPC F
from AtCoder Library Practice Contest
ACLPC_F
F - Convolution
https://gyazo.com/dde1796c658447207ea2ef7a288c65a8
A naive convolution would be O(NM)
Applying the butterfly operation used in FFT, we obtain O(N logM)
https://www.onosokki.co.jp/HP-WK/eMM_back/emm140.pdf
I heard that NTT is also an option.
---
This page is auto-translated from /nishio/ACLPC F using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.