- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 0 1 背包 回溯版
#include #include #include #include #include #include using namespace std; #define MAX 1000 struct node { int w, v; //背包的价值和体积 int leap; }; int c, n; //背包容量和物品个数 int bestw, cw, c
2012-05-09 23:40:19 427
原创 zoj 1047
#include #include #include #include #include #include using namespace std; char map[25][25]; bool vis[25][25]; int n, m, a, b; int len; int dir[4][2] = {-1,0, 0,1, 1,0, 0,-1}; int dir_x[4][2] =
2012-05-02 22:06:14 783
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人