题目传送门 1 /* 2 题意:对于长度为x的子序列,每个序列存放为最小值,输出长度为x的子序列的最大值 3 set+线段树:线段树每个结点存放长度为rt的最大值,更新:先升序排序,逐个添加到set中 4 查找左右相邻的位置,更新长度为r - ...
分类:
其他好文 时间:
2015-05-27 20:43:47
阅读次数:
118
题目传送门 1 /* 2 字符串处理:回文串是串联的,一个一个判断 3 */ 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 11 const int MAXN = 1e...
分类:
其他好文 时间:
2015-05-27 20:35:41
阅读次数:
190
题目传送门 1 /* 2 数论/暴力:找出第一次到a1,a2的次数,再找到完整周期p1,p2,然后以2*m为范围 3 t1,t2为各自起点开始“赛跑”,谁落后谁加一个周期,等到t1 == t2结束 4 详细解释:http://blog.csdn.net...
分类:
其他好文 时间:
2015-05-27 20:35:25
阅读次数:
119
###常有用到nginx http concat模块合并多个js请求 合并的形式可以写成这样 ```javascript ``` 如需要window下已编译好的包含concat模块(基于淘宝http-concat)nginx压缩包,请前往[**传送门**](http://pan.baid...
【传送门】发布说明:https://github.com/fusijie/Cocos2dx-ReleaseNote-zh/blob/master/SUMMARY.md更新记录:https://github.com/cocos2d/cocos2d-x/blob/v3/CHANGELOGhttps://...
分类:
其他好文 时间:
2015-05-27 12:10:55
阅读次数:
180
题目传送门 1 /* 2 题意:给n个棍子,组成的矩形面积和最大,每根棍子可以-1 3 贪心:排序后,相邻的进行比较,若可以读入x[p++],然后两两相乘相加就可以了 4 */ 5 #include 6 #include 7 #include 8 #include 9 usi...
分类:
其他好文 时间:
2015-05-26 21:03:03
阅读次数:
118
题目传送门 1 /* 2 模拟:这就是一道模拟水题,看到标签是贪心,还以为错了呢 3 题目倒是很长:) 4 */ 5 #include 6 #include 7 #include 8 #include 9 #include 10 using namespace std;11 ...
分类:
其他好文 时间:
2015-05-26 18:40:27
阅读次数:
185
题目传送门 1 /* 2 题意:两堆牌,每次拿出上面的牌做比较,大的一方收走两张牌,直到一方没有牌 3 queue容器:模拟上述过程,当次数达到最大值时判断为-1 4 */ 5 #include 6 #include 7 #include 8 #include 9 #incl...
分类:
其他好文 时间:
2015-05-26 15:58:56
阅读次数:
156
题目传送门 1 /* 2 水题:ans = (1+2+3+...+n) * k - n,开long long 3 */ 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 typedef lo...
分类:
其他好文 时间:
2015-05-26 15:52:58
阅读次数:
145