摘要: 稍微有点新意的二分#include#include#include#include#include#include#include#define eps 0.000001#define maxn 5005using namespace std;int n;double w;struct node{ ... 阅读全文
posted @ 2014-07-15 23:11 Yours1103 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 状态压缩dp#include#include#include#include#include#define maxn 16using namespace std;long long dp[1<<maxn];long long weapon[1<<maxn];int robot[maxn];char ... 阅读全文
posted @ 2014-07-15 17:00 Yours1103 阅读(127) 评论(0) 推荐(0) 编辑
摘要: dp[i][j]意思是前i个分成j组最小的花费#include#include#include#include#include#define maxn 110using namespace std;int dp[maxn][maxn];int vis[maxn][maxn];int num[maxn... 阅读全文
posted @ 2014-07-15 15:13 Yours1103 阅读(111) 评论(0) 推荐(0) 编辑
摘要: View Code 阅读全文
posted @ 2014-07-15 13:59 Yours1103 阅读(119) 评论(0) 推荐(0) 编辑