摘要:
Variables and Basic Types Section 2.1 Primitive Built-in Types 2.1.1 Arithmetic Types include two categories: Integral types(character and boolean typ 阅读全文
摘要:
Descrioption 对于给定的外籍飞行员与英国飞行员的配合情况, 找出一个最佳飞行员配对方案 使皇家空军一次能派出最多的飞机 Solution 二分图最大匹配裸题 Code cpp include using namespace std; const int N = 205; int n, m 阅读全文
摘要:
题意:每次询问一个区间里的数是否各不相同 显然,当一个区间里的数各不相同时,它们的种数就是区间的长度 莫队 可以快速地求出区间的颜色种数,因此强制离线计算即可 cpp include using namespace std; const int N = 100005; int n, q, a[N], 阅读全文
摘要:
平衡树练手题目 刚好学平衡树,这道题直接查询前驱和后继,然后比较差的绝对值即可 不要忘记删除 cpp include define pushup(u) if(u ls siz) u siz = u ls siz + u rs siz, u val = u rs val define new_Node 阅读全文