摘要: 本质上是暴力模拟计算,逐位统计、以及如何寻找不被约束的状态来简化计算 是关键点。例题1 ural 1057. 1.树形结合, 按位统计. 若当前位为1, 则取0, 剩下的位任意取都比其小, ans += f[ L ][ k-tot ], L表示剩下长度. 论文这个地方写的感觉不对- -...#include#include#include#include#includeusing namespace std;int f[32][32];void init(){ memset(f,0,sizeof(f)); f[0][0] = 1; for(int i = 1; i ... 阅读全文
posted @ 2013-05-17 13:55 yefeng1627 阅读(1407) 评论(0) 推荐(0) 编辑

Launch CodeCogs Equation Editor