1. 首页
  2. 数据库
  3. 其它
  4. 模板——快速傅里叶变换(递归)

模板——快速傅里叶变换(递归)

上传者: 2021-01-16 18:27:42上传 PDF文件 16.15KB 热度 15次
#include #include using namespace std; const int N = 1e6 + 10; const double PI = acos(-1); struct Complex { double R, I; Complex() { R = 0, I = 0; } Complex(double r, double i) :R(r), I(i) {} }; Complex operator+(Complex a, Complex b) { return Complex(a.R + b.R, a.I + b.I); } Complex operator-(Co
下载地址
用户评论