
状压dp
文章平均质量分 56
Orion233
这个作者很懒,什么都没留下…
展开
-
HDU 1074 Doing Homework「状压dp」
A - Doing HomeworkIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the原创 2017-05-09 22:19:47 · 243 阅读 · 0 评论 -
HDU 1565 方格取数(1)
数组不可以直接开,剪枝之后求算一下所有满足题目条件的状态数目,然后再开数组,30000足够。代码如下:#pragma comment(linker, "/STACK:1024000000,1024000000") #include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #原创 2017-09-24 19:38:51 · 183 阅读 · 0 评论