随笔分类 -  A-模板

摘要:Cipolla cpp LL ksm(LL k,LL n) { LL s=1; for(;n;n =1,k=k k%mo) if(n&1) s=s k%mo; return s; } namespace number { LL D; struct Z { LL x,y; Z(LL _x=0,LL _ 阅读全文
posted @ 2019-05-09 20:31 BAJim_H 阅读(502) 评论(0) 推荐(0)
摘要:FFT NTT 多项式除法(多项式取模) 多点求值(洛谷 P5050) 多项式开根(洛谷P5205) 多项式取ln(洛谷P4725) cpp include define fo(i,a,b) for(int i=a;i=b; i) define mo 998244353 define LL long 阅读全文
posted @ 2019-03-21 22:07 BAJim_H 阅读(215) 评论(0) 推荐(0)
摘要:原题为[UOJ 179] Code 阅读全文
posted @ 2019-03-21 22:04 BAJim_H 阅读(394) 评论(0) 推荐(0)