随笔分类 -  FFT

摘要:void nnt(int a[],int len,int on) { for(int i=0;i<len;i++) if(i<r[i]) swap(a[i],a[r[i]]); for(int i=1;i<len;i<<=1) { int wn=mod_pow(3,(mod-1)/(i<<1)); 阅读全文
posted @ 2018-08-14 11:43 _Jessie 阅读(190) 评论(0) 推荐(0)
摘要:题目大意: https://www.luogu.org/problemnew/show/P3338 题解 #include <bits/stdc++.h> #define N 300005 #define PI acos(-1.0) using namespace std; struct cpx { 阅读全文
posted @ 2018-08-13 15:16 _Jessie 阅读(333) 评论(0) 推荐(0)
摘要:题目大意: 给定l,输入两个位数为l的数A B 输出两者的乘积 FFT讲解 这个讲解蛮好的 就是讲解里面贴的模板是错误的 struct cpx { double x,y; cpx(double _x=0.0,double _y=0.0) { x=_x; y=_y; } cpx operator -( 阅读全文
posted @ 2018-08-13 08:15 _Jessie 阅读(195) 评论(0) 推荐(0)