上一页 1 ··· 6 7 8 9 10 11 下一页

2009年3月6日

素数专题

摘要: 素数筛法 根据定义:一个自然数,如果不能被他平方根以内的所有素数整除,则是素数 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include using namespace std; const int MAX_SIZE... 阅读全文

posted @ 2009-03-06 19:15 Xredman 阅读(141) 评论(0) 推荐(0) 编辑

2009年3月4日

ZOJ1029

摘要: 贪心,考虑连廊的特殊性即可过了 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include using namespace std; const int MAX_SIZE = 202; typedef struct ... 阅读全文

posted @ 2009-03-04 16:54 Xredman 阅读(212) 评论(0) 推荐(0) 编辑

ZOJ1025(简单贪心)

摘要: the machine will need no setup time for a stick of length l' and weight w' if l#include #include using namespace std; const int MAX_SIZE = 5002; typedef struct { int length; int weight; ... 阅读全文

posted @ 2009-03-04 15:42 Xredman 阅读(325) 评论(0) 推荐(0) 编辑

ZOJ1569

摘要: n m a1 a2 a3 a4 a5 a6 a7 a8 ... S1 = a1 S2 = a1 + a2 S3 = a1 + a2 + a3 S4 = a1 + a2 + a3 + a4 S5 = a1 + a2 + a3 + a4 + a5 任何一段连续数和可用Sj - Si (i #include using namespace std; const int MAX_SIZE = 50... 阅读全文

posted @ 2009-03-04 13:26 Xredman 阅读(185) 评论(0) 推荐(0) 编辑

2009年3月3日

八皇后问题(递归)

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include #include using namespace std; const int MAX_SIZE = 100; enum flag {blank ='... 阅读全文

posted @ 2009-03-03 12:04 Xredman 阅读(161) 评论(0) 推荐(0) 编辑

汉诺塔问题(递归)

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include using namespace std; int cnt; void move(char x, int n, char z) {//输出移动方式 cout>n) {... 阅读全文

posted @ 2009-03-03 12:02 Xredman 阅读(145) 评论(0) 推荐(0) 编辑

全新版大学英语综合教程在线学习

摘要: 综合教程第1册 http://educenter.fudan.edu.cn/collegeenglish/new/integrated1/ 综合教程第2册 http://educenter.fudan.edu.cn/collegeenglish/new/integrated2/ 综合教程第3册 http://educenter.fudan.edu.cn/collegeenglish/new/i... 阅读全文

posted @ 2009-03-03 09:16 Xredman 阅读(631) 评论(0) 推荐(0) 编辑

2009年3月2日

ZOJ1589(用弗洛伊德做)

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include using namespace std; const int X_INF = 5;//无穷大 const int MAX_SIZE = 30; int Gr... 阅读全文

posted @ 2009-03-02 12:56 Xredman 阅读(188) 评论(0) 推荐(0) 编辑

2009年3月1日

Adobe Reader for Ubuntu的安装

摘要: 先到我的网盘下载简体中文版,是.deb格式的,直接双击安装就可以了: 点击下载>> 阅读全文

posted @ 2009-03-01 09:26 Xredman 阅读(202) 评论(0) 推荐(0) 编辑

2009年2月28日

POJ2140

摘要: 取m为第一个数 组合个数 所组成的数 1 m 2 m m+1 3 m m+1 m+2 4 m m+1 m+2 m+3 5 m m+1 m+2 m+3 m+4 可以求m为:(2*n - t^2 + t)/(2*t) (t = 1,2,3...),只要求的m合法即可 Code highlighting produ... 阅读全文

posted @ 2009-02-28 21:14 Xredman 阅读(298) 评论(0) 推荐(0) 编辑

ZOJ1331

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include using namespace std; const int MAX_SIZE = 202; int Cube[MAX_SIZE]; int cmp(cons... 阅读全文

posted @ 2009-02-28 16:41 Xredman 阅读(227) 评论(0) 推荐(0) 编辑

bsearch()实现二分查找(转)

摘要: C语言中可以用bsearch()实现二分查找。同qsort()一样,bsearch()也包含在库中,且同样要 自定义比较子函数。其原型如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->void *bsearch(const void *... 阅读全文

posted @ 2009-02-28 15:18 Xredman 阅读(246) 评论(0) 推荐(0) 编辑

ZOJ1292

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include #include using namespace std; const int MAX_SIZE = 105; int Result[MAX_SIZE]; i... 阅读全文

posted @ 2009-02-28 14:58 Xredman 阅读(321) 评论(0) 推荐(0) 编辑

POJ1949

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include using namespace std; const int MAX_SIZE = 52; int height[MAX_SIZE]; int main() { int... 阅读全文

posted @ 2009-02-28 14:23 Xredman 阅读(191) 评论(0) 推荐(0) 编辑

2009年2月27日

POJ1949

摘要: Chores Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include long endTime[10002]; long m,n; void Solve() { long cost,tt,max,i;//cost表示第i次所... 阅读全文

posted @ 2009-02-27 20:35 Xredman 阅读(196) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 下一页

导航