dp+状态压缩
文章平均质量分 79
剑圣VS神牛
这个作者很懒,什么都没留下…
展开
-
Relocation
Emma and Eric are moving to their new house they bought after returning from their honeymoon. Fortunately, they have a few friends helping them relocate. To move the furniture, they only原创 2013-07-04 00:43:19 · 893 阅读 · 0 评论 -
炮兵阵地
Description司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示:如果在地图中的灰色所标识的平原上部署一支炮兵部队,则图中的黑色的网格表原创 2013-07-05 17:44:25 · 901 阅读 · 0 评论