This problem is in Contest(s) below:
Contest 1148:FFT系列
Contest 1253:FFT
Contest 1343:FFT入门
Contest 1472:FFT