随笔分类 -  CF

摘要:a.水b.水的我想吐,奈何英文渣读题读半天还读错了(所以所最讨厌模拟了就以因为读不懂题啊O(≧口≦)O)。c.水枚举。d.水博弈单数前走一步后每步模仿对手走。e.我就没资格说水了,因为我也是看结题报告才懂的。。就酱。P(x) = a0 + a1x1 + ... + anxn.缩减式子可得(P(x) ... 阅读全文
posted @ 2015-01-26 10:34 icodefive 阅读(193) 评论(0) 推荐(0)
摘要:a.水b.n长度的街道有m个路灯,给出每个路灯的位置,求灯光能覆盖所有地方的最小灯光半径,水;c.小明有n们课程要达到一个规定的总分数,一直目前每科达到的分数和每科的总分,买每门课程分数所需费用给出,问最少得花多少钱;贪心,水;d.两个人刷怪,问谁能给出最后一击,给出怪物的血量,小明每1/m秒出击一... 阅读全文
posted @ 2014-12-23 10:06 icodefive 阅读(218) 评论(0) 推荐(0)
摘要:树形最大上升子序列这里面的上生子序列logn的地方能当模板使 good#include#include#include#include#includeusing namespace std;const int maxa = 6006;vectore[maxa];int d[maxa];int a[m... 阅读全文
posted @ 2014-12-10 13:13 icodefive 阅读(194) 评论(0) 推荐(0)
摘要:AA monster is attacking the Cyberland!Master Yang, a braver, is going to beat the monster. Yang and the monster each have 3 attributes: hitpoints (HP)... 阅读全文
posted @ 2014-11-28 22:18 icodefive 阅读(218) 评论(0) 推荐(0)
摘要:a.给俩数, 求他俩之间二进制数中1最多的,有多个输出最小的;贪心,从小到大加能加就加,最后可能碰到一个不能加了但是当前数比l小,那么就加上这个数,然后从大到小,能减就减,见到符合条件#include#include#includeusing namespace std;int main(){ ... 阅读全文
posted @ 2014-11-19 12:56 icodefive 阅读(324) 评论(0) 推荐(0)