随笔分类 -  我的随笔

code blocks的快捷键
摘要:参考:https://blog.csdn.net/qq_33302004/article/details/80297501 https://blog.csdn.net/u013820168/article/details/107043720?utm_medium=distribute.pc_rele 阅读全文
posted @ 2020-09-09 21:31 angelliu
高维前缀和
摘要:转载于:https://www.cnblogs.com/heyuhhh/p/11585358.html 转载于:https://www.cnblogs.com/charles1999/p/12508658.html#toc 阅读全文
posted @ 2020-06-09 23:34 angelliu
比较函数大小
摘要:结构体内嵌比较函数: sort( a, a+ n, cmp) 比较慢,排序有可能就TLE了 故用 结构体内嵌比较函数:bool operator < (const node &x) const{}排序的时候,没有参数的l,r比有参数的x.l,x.r的级别高,就相当于是比较的时候的第一个数 一个变量排 阅读全文
posted @ 2020-06-02 17:45 angelliu
STL中的unique()和lower_bound ,upper_bound
摘要:unique(): 作用:unique()的作用是去掉容器中相邻元素的重复元素(数组可以是无序的,比如数组可以不是按从小到大或者从大到小的排列方式) 使用方法:unique(初始地址,末地址); 注意: 1.unique()函数返回值不是去重后容器中元素的数量,而是去重后容器中的末地址。也就是说,如 阅读全文
posted @ 2020-06-02 16:44 angelliu