摘要:
求卡特兰数的模板 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 2e5+10,mod = 1e9+7; int qpow(int a,int b,int p){ int res=1; 阅读全文
posted @ 2022-05-11 19:56
xhy666
阅读(33)
评论(0)
推荐(0)
摘要:
##组合数各种性质及定理 //方法1 把每个Cab通过递推式预处理(n<=1e4,b<=a<=2e3) #include<bits/stdc++.h> using namespace std; const int N = 2010,mod = 1e9+7; int C[N][N]; void ini 阅读全文
posted @ 2022-05-11 14:37
xhy666
阅读(44)
评论(0)
推荐(0)
摘要:
sg=mex({mex(s1),mex(s2}...mex{sn}) sg(a,b)=sg(a)^sg(b) 阅读全文
posted @ 2022-05-11 14:30
xhy666
阅读(21)
评论(0)
推荐(0)