上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页

2015年3月10日

摘要: Add AgainInput:Standard InputOutput:Standard OutputSummation of sequence of integers is always a common problem in Computer Science. Rather than compu... 阅读全文

posted @ 2015-03-10 17:27 LLGemini 阅读(241) 评论(0) 推荐(0) 编辑

2015年3月9日

摘要: ChessAlmost everyone knows the problem of putting eight queens on anchessboard such that no Queen can take another Queen. Jan Timman (a famous Dutch c... 阅读全文

posted @ 2015-03-09 20:44 LLGemini 阅读(335) 评论(0) 推荐(0) 编辑

摘要: Problem HHARDLY HARDYou have been given the task of cutting out a quadrilateral slice of cake out of a larger, rectangular cake. You must find the sli... 阅读全文

posted @ 2015-03-09 18:41 LLGemini 阅读(152) 评论(0) 推荐(0) 编辑

2015年3月8日

摘要: 看到了大神的代码。理解了好久。。。真是差距。题意:给出m, p, a, b,然后xi满足已下两个公式, 求xp1+xp2+...+xpm的最大值。1、-1/sqrt(a) 0)2、x1+x2+...+xm = b*sqrt(a);注意:p为偶数。解题思路:因为p为偶数,所以sqrt(a)和-1/sq... 阅读全文

posted @ 2015-03-08 21:00 LLGemini 阅读(262) 评论(0) 推荐(0) 编辑

摘要: Dsecriptionn participants of «crazy tea party» sit around the table. Each minute one pair of neighbors can change their places. Find the minimum time ... 阅读全文

posted @ 2015-03-08 20:38 LLGemini 阅读(191) 评论(0) 推荐(0) 编辑

2015年3月6日

摘要: 谢谢阿苏~http://blog.csdn.net/urecvbnkuhbh_54245df/article/details/5856756【迭代加深搜索(ID,iterative deepening)】:从小到大枚举上限maxd,每次执行只考虑深度不超过maxd的结点。 ------对于可以用回... 阅读全文

posted @ 2015-03-06 21:15 LLGemini 阅读(320) 评论(0) 推荐(0) 编辑

2015年3月5日

摘要: 【LIC--最长递增子序列问题】 在一列数中寻找一些数,这些数满足:任意两个数a[i]和a[j],若i minT[len],则将T[t]接在minT[len]后将得到一个更长的上升子序列,len = len + 1, minT[len] = T[t];否则,在minT[1]..minT[len]中,... 阅读全文

posted @ 2015-03-05 00:00 LLGemini 阅读(328) 评论(0) 推荐(0) 编辑

2015年3月4日

摘要: 判断一个字符串是否为回文串最简单的方法是从两边向中间收缩看是否字符相同。1 bool is_pali(int l, int r)2 {3 while(l < r)4 {5 if(str[l] != str[r]) return false;6 ++l;... 阅读全文

posted @ 2015-03-04 09:54 LLGemini 阅读(127) 评论(0) 推荐(0) 编辑

摘要: 回文串问题。给出一个字符串,问最少可以划分为多少个字符串子串。对于判断是否为回文串,对于不是很长的字符串,可以采取直接暴力,即从两边向中间收缩判断字符相等。1 bool is_pali(int l, int r)2 {3 while(l #include#include#includeusi... 阅读全文

posted @ 2015-03-04 09:52 LLGemini 阅读(157) 评论(0) 推荐(0) 编辑

2015年3月3日

摘要: Problem FLighting SystemDesignInput: StandardInputOutput: StandardOutput You are given the task to designa lighting system for a huge conference hall.... 阅读全文

posted @ 2015-03-03 23:43 LLGemini 阅读(197) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页