
UOJ
Tgotp
蒟蒻OIer
blog:tgotp.science
展开
-
#34. 多项式乘法
UOJ的FFT板子 我分别写了fft 与 ntt... ntt与fft的差别仅在于复数运算这一块... FFT代码如下: #include<bits/stdc++.h> #define PI acos(-1) #define rep(i,x,y) for(register int i = x; i <= y ; ++ i) #define repd(i,x,y) for...原创 2018-03-15 08:04:23 · 294 阅读 · 0 评论 -
#58. 【WC2013】糖果公园
虽然是个树上莫队裸题还是一遍a 但是发现这题不简单,因为洛谷卡常… 在uoj上过了发现洛谷只过了三个点, 然后各种卡常总算过了 c++代码如下: #include<bits/stdc++.h> #define rep(i,x,y) for(register int i = x ; i <= y;++ i) #define repd(i,x,y) for(register...原创 2018-04-09 20:35:33 · 301 阅读 · 0 评论