摘要: 中了一个坑,循环时竟然从该物品的价格和分数开始,中招了,因为就算价格高于钱数,可能分数符合呢????所以要从零开始。#include #include #include #include #include using namespace std;int dp[102][102][102][7];in... 阅读全文
posted @ 2015-03-17 23:14 chenjunjie1994 阅读(107) 评论(0) 推荐(0)
摘要: 同样是二分+DLX即可。#include #include #include #include #include #define LL __int64using namespace std;const int maxn=3800;const int maxc=65;const int maxr=65... 阅读全文
posted @ 2015-03-17 22:03 chenjunjie1994 阅读(123) 评论(0) 推荐(0)
摘要: 二分答案+重复覆盖。注意返回的条件哦,不能光套模板。#include #include #include #include #include using namespace std;const int maxn=3600;const int maxc=55;const int maxr=55;con... 阅读全文
posted @ 2015-03-17 20:55 chenjunjie1994 阅读(123) 评论(0) 推荐(0)