摘要: 传送门:https://www.nowcoder.com/acm/contest/79#question 说是比赛题解,其实我只会前三题; 后面的一定补 T1 题意,在一个长度为n的时间内,问如何选择存款期限,使得收益最大。 dp #include <iostream> #include <cstd 阅读全文
posted @ 2018-03-23 22:35 ckxkexing 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 传送门:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3870 题意:找出一个数列中的两个数,所有通过异或和使得结果同时大于这两个数; 思路:先找出每个数在二进制下最高位 1 所在的下标; 对于每个数, 1/ 判断这个数的最 阅读全文
posted @ 2018-03-23 19:11 ckxkexing 阅读(101) 评论(0) 推荐(0) 编辑
摘要: ZOJ-3872-Beauty of Array 传送门:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3872 参考:https://blog.csdn.net/u013050857/article/details/452 阅读全文
posted @ 2018-03-23 18:02 ckxkexing 阅读(112) 评论(0) 推荐(0) 编辑