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) 编辑

导航