dp专栏
文章平均质量分 82
yukiiiiiiiiia
这个作者很懒,什么都没留下…
展开
-
HDU1074字典序+状压
HDU1074字典序+状压题干Problem DescriptionIgnatius 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 homework after the deadline, the tea原创 2021-03-21 10:59:23 · 82 阅读 · 0 评论 -
状态压缩dp模板 poj1185 炮兵布阵
POJ1185 炮兵阵地Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 38970 Accepted: 14870Description司令部的将军们打算在NM的网格地图上部署他们的炮兵部队。一个NM的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示:如果在原创 2021-03-11 17:20:56 · 63 阅读 · 0 评论