摘要: /************************************************************************//* 太阳月亮地球http://lostinreality.blog.163.com/blog/static/200649312201111116323... 阅读全文
posted @ 2014-05-09 16:01 Difei 阅读(871) 评论(0) 推荐(0) 编辑
摘要: /* reference http://nehe.gamedev.net/article/using_gluunproject/16013/*/#include // windows系统要加这个。因为下面2个头文件的一些宏是在这个文件中定义的#include #include //这... 阅读全文
posted @ 2014-05-09 15:12 Difei 阅读(2381) 评论(0) 推荐(0) 编辑
摘要: #include #include int bottom,Flag2;int COST,n,m,*bestx;int cc,cw,w[100][100];int cp,c[100][100];int bestw=1000;int Flag;int E;int bext[100];int bestxu... 阅读全文
posted @ 2014-05-09 00:01 Difei 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: #include // windows系统要加这个。因为下面2个头文件的一些宏是在这个文件中定义的#include #include //这两个头文件在OpenGL程序中几乎必加。//>>>>>>>>>>>>>>>>>>> 初始化void myInit(void){ glC... 阅读全文
posted @ 2014-05-08 22:22 Difei 阅读(364) 评论(0) 推荐(0) 编辑
摘要: /** 01背包,recursive* 05.08/2014*/#include #include #include #define MAXN 30000using namespace std;int N,W;int w[MAXN],v[MAXN];int solve(int i, int tw)... 阅读全文
posted @ 2014-05-08 12:08 Difei 阅读(380) 评论(0) 推荐(0) 编辑
摘要: #include // windows系统要加这个。因为下面2个头文件的一些宏是在这个文件中定义的#include #include //这两个头文件在OpenGL程序中几乎必加。//>>>>>>>>>>>>>>>>>>> 初始化 void myInit(void) { g... 阅读全文
posted @ 2014-05-07 22:11 Difei 阅读(730) 评论(0) 推荐(0) 编辑
摘要: /** poj 3253 Fence Repair* 05.06/2014*/#include #include #include #define MAXN 30000using namespace std;int N;int a[MAXN];void solve(){ long long ... 阅读全文
posted @ 2014-05-06 16:41 Difei 阅读(179) 评论(0) 推荐(0) 编辑
摘要: /** poj 3069 Saruman's Army* 05.05/2014*/#include #include //for memset#include #define MAXN 4000#define INF 100000000using namespace std;int N,R;int ... 阅读全文
posted @ 2014-05-06 16:33 Difei 阅读(146) 评论(0) 推荐(0) 编辑
摘要: /** poj 3617 best cow line* 05.05/2014*/#include #include #define MAXN 4000int N;char ca[MAXN];void solve(){ int starti = 0,endi = N-1; int ... 阅读全文
posted @ 2014-05-06 16:28 Difei 阅读(220) 评论(0) 推荐(0) 编辑