版本比较
B - Bipartite Bicolored Graphs
正文
增加 2 行删除 2 行
22 行未改动232425262727282930312 行未改动3435363738383940414258 行未改动22 行未改动f[i] 表示大小为 i 的联通二分图个数
g[i] 表示分成 C 个二分图的方案数,系数乘 2^C
h[i] 表示答案 h[i] 表示答案*/
const int N = 4e6;int fac[N+10];2 行未改动
int fpm(int a,int b){ int c = a, ans = 1; while(b){ if((b&1)==1) ans = (ans*c)%p; if((b&1)==1) ans = (ans*c)%p; c = (c*c)%p; b >>= 1; } return ans;58 行未改动