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 阅读(270) 评论(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 阅读(195) 评论(0) 推荐(0)