2013年4月26日

ZOJ 4257 Most Powerful (状态压缩DP)

摘要: Most PowerfulTime Limit:2 Seconds Memory Limit:65536 KBRecently, 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 power is produced. Researchers know the way every t 阅读全文

posted @ 2013-04-26 22:33 kuangbin 阅读(440) 评论(0) 推荐(0) 编辑

POJ 2288 Islands and Bridges (状态压缩DP)

摘要: Islands and BridgesTime Limit:4000MSMemory Limit:65536KTotal Submissions:7685Accepted:1968DescriptionGiven a map of islands and bridges that connect these islands, a Hamilton path, as we all know, is a path along the bridges such that it visits each island exactly once. On our map, there is also a p 阅读全文

posted @ 2013-04-26 16:07 kuangbin 阅读(489) 评论(0) 推荐(0) 编辑

POJ 1185 炮兵阵地 (状态压缩DP)

摘要: 炮兵阵地Time Limit:2000MSMemory Limit:65536KTotal Submissions:14519Accepted:5406Description司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示:如果在地图中的灰色所标识的平原上部署一支炮兵部队,则图中的黑色的网格表示它能够攻击到的区域:沿 阅读全文

posted @ 2013-04-26 12:42 kuangbin 阅读(489) 评论(0) 推荐(1) 编辑

POJ 3254 Corn Fields(状态压缩DP)

摘要: Corn FieldsTime Limit:2000MSMemory Limit:65536KTotal Submissions:4739Accepted:2506DescriptionFarmer John has purchased a lush new rectangular pasture composed ofMbyN(1 ≤M≤ 12; 1 ≤N≤ 12) square parcels. He wants to grow some yummy corn for the cows on a number of squares. Regrettably, some of the squ 阅读全文

posted @ 2013-04-26 11:16 kuangbin 阅读(377) 评论(0) 推荐(0) 编辑

导航

JAVASCRIPT: