摘要:
用一维数组存储二叉树,利用二分查找降低效率 1.线段树的构造,区间查询 //balanced lineup #include<iostream> #include<cstring> #include<climits> using namespace std; const int maxn=50001 阅读全文
摘要:
测试数据: 100 4 2 1 2 5 10 13 11 12 14 2 0 1 2 99 2 200 2 1 5 5 1 2 3 4 5 1 0 0 0 样例输出:4 1 1 分析: 最基础的只需要解决查询问题 //并查集 #include<iostream> using namespace st 阅读全文