摘要:
题目链接 "BZOJ4589" 题解 "FWT" 模板题 cpp include include include include include include include include include define LL long long int define REP(i,n) for ( 阅读全文
摘要:
题目链接 "BZOJ2436" 题解 看这$O(n^3)$的数据范围,可以想到区间$dp$ 发现同一个会场的活动可以重叠,所以暴力求出$num[l][r]$表示离散化后$[l,r]$的完整活动数 我们的目标求出$F[l][r]$表示$[l,r]$必须选时,二者的最小值 我们不妨令$A$选了$[l,r 阅读全文
摘要:
题目链接 "BZOJ3142" 题解 题意:选一个正整数和$K 1$个$[1,M]$中的数,使得总和小于等于$N$,求方案数模$P$ 题目中$K(M 1) include include include include include include include include define L 阅读全文