![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
快速傅里叶变换(FFT)
等我学会后缀自动机
侠影之谜
展开
-
HDU 1402 A+B Problem Plus(FFT模板题)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1402 #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> using namespace std; #define maxn 65536+5 const dou...原创 2019-01-22 19:54:12 · 304 阅读 · 0 评论 -
HDU 4609 3-idiots (FFT+组合数学)*
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4609 #include<bits/stdc++.h> using namespace std; #define debug puts("YES"); #define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++) #define ll lon...原创 2019-02-02 22:58:51 · 191 阅读 · 0 评论 -
POJ 2389 Bull Math (FFT模板题)
题目链接:http://poj.org/problem?id=2389 #include<iostream> #include<cstring> #include<cmath> #include<cstdio> using namespace std; #define debug puts("YES"); #define rep(x,y,z) ...原创 2019-02-03 21:37:52 · 181 阅读 · 0 评论