
状压dp
YRZ-James
who say you are not perfect?
展开
-
POJ - 1185 炮兵阵地
题目:司令部的将军们打算在NM的网格地图上部署他们的炮兵部队。一个NM的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示:如果在地图中的灰色所标识的平原上部署一支炮兵部队,则图中的黑色的网格表示它能够攻击到的区域:沿横向左...原创 2019-03-19 19:32:07 · 148 阅读 · 0 评论 -
POJ - 3311 Hie with the Pie
题目:The Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can afford to hire only one driver to do the deliveries. He will w...原创 2019-03-20 16:52:45 · 130 阅读 · 0 评论 -
ZOJ - 3471 Most Powerful
题目:Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and a lot of po...原创 2019-03-20 17:48:39 · 138 阅读 · 0 评论 -
POJ - 3254 Corn Fields
题目:Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy corn for the cows on a number of squares. Regrettab...原创 2019-03-18 22:07:17 · 143 阅读 · 0 评论