设为首页 加入收藏

TOP

HDU4628+状态压缩DP
2014-11-23 19:05:23 来源: 作者: 【 】 浏览:6
Tags:HDU4628 状态 压缩
/*
状态压缩DP
题意:每次可以去掉一个回文串,求最少几步能取完。
*/
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long ll;
//typedef __int64 int64;
const int maxn = 18;
const int inf = 0x3f3f3f3f;
const double pi=acos(-1.0);
const double eps = 1e-8;
int dp[ 1<=0;i-- ){
			 for( int j=0;j=0;i-- ){
			for( int j=0;j 
 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇POJ 3468 A Simple Problem with .. 下一篇HDU4675[GCD of scequence][组合..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Python 教程 - W3Sch (2025-12-26 12:00:51)
·Python基础教程,Pyt (2025-12-26 12:00:48)
·神仙级python入门教 (2025-12-26 12:00:46)
·“我用Java 8”已成 (2025-12-26 11:19:54)
·下载 IntelliJ IDEA (2025-12-26 11:19:52)