摘要: //参考书是刘汝佳的那本算法书P108//sort的用法也就是本来是从小到大排序,如果想要从大到小,中间写一个比较函数就可以了;//以下两个检索的东西//lower_bound找到一个值的最小插入位置 int tmp1=lower_bound(a,a+n,x)-a; //upper... 阅读全文
posted @ 2016-04-17 15:56 see_you_later 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#include#include#include#include#include#includeusing namespace std;typedef long long LL;/*1 0 01 C 1... 阅读全文
posted @ 2016-04-17 11:05 see_you_later 阅读(153) 评论(0) 推荐(0) 编辑