bzoj 1649: [Usaco2006 Dec]Cow Roller Coaster 背包dp
→题目链接←
dp[i][j]表示铁轨长度为i,花费为j时有趣指数最大值
代码:
#include
#include
#include
#include
#include
#include
#define inf 999999999
#define ll long long
using namespace std;
struct node{
int s,e,w,c;
}a[1
原创
2017-08-15 10:06:49 ·
251 阅读 ·
0 评论