摘要: Bryce1010模板CDQ分治1、与普通分治的区别普通分治中,每一个子问题只解决它本身(可以说是封闭的) 分治中,对于划分出来的两个子问题,前一个子问题用来解决后一个子问题而不是它本身2、试用的情况在很多问题中(比如大多数数据结构中),经常需要添加一些动态问题,然... 阅读全文
posted @ 2018-07-24 17:05 Bryce1010 阅读(75) 评论(0) 推荐(0) 编辑
摘要: C++中this指针的理解先要理解class的意思。class应该理解为一种类型,象int,char一样,是用户自定义的类型。用这个类型可以来声明一个变量,比如int x, myclass my等等。这样就像变量x具有int类型一样,变量my具有myclass类型。理... 阅读全文
posted @ 2018-07-24 11:28 Bryce1010 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #497 (Div. 2)打的虚拟赛,感觉这场比赛出题人成功背锅,不仅给了N个Announcement,题意也比较难懂。打完后D过了一个,E题防AK了。像我这样的菜鸟也能半小时内A完前三个(当时第一名的大佬是10分钟解决了前3个)A.... 阅读全文
posted @ 2018-07-24 10:54 Bryce1010 阅读(60) 评论(0) 推荐(0) 编辑
摘要: Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;#define ll long longconst int MAXN=1e5+10;const int... 阅读全文
posted @ 2018-07-24 10:50 Bryce1010 阅读(66) 评论(0) 推荐(0) 编辑
摘要: Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;#define ll long longconst int MAXN=1e5+10;const int... 阅读全文
posted @ 2018-07-24 10:48 Bryce1010 阅读(72) 评论(0) 推荐(0) 编辑
摘要: Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;int main(){ sets; s.insert('a'); s.insert(... 阅读全文
posted @ 2018-07-24 10:45 Bryce1010 阅读(79) 评论(0) 推荐(0) 编辑