Help With FFT

Revision en1, by sdssudhu, 2018-08-15 09:39:12

This is the snippet I have for FFT. But I feel it is slow in many cases.

One example is http://mirror.codeforces.com/problemset/submission/958/41610928 which takes nearly 3.85 seconds to pass for n=200000

Can somebody help me to optimise it.

Thanks.

Tags fft, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sdssudhu 2018-08-15 09:39:12 297 Initial revision (published)