upper/lower_bound() 查找小于/小等于 相应的队列也要逆序存 对于想要查找小于/小等于 一定要先逆序数组/容器再查找,没查到也是返回end #include<iostream> #include<algorithm> #include<set> #include<functional> using namespace std; int n; set<int,greater<int>> a; int b[100010]; int main(){ fo...
(upperbound – lowerbound +1)*Rnd + lowerbound)输入与输出函数数组的命名数组元素固定大小数组与动态数组固定大小数组动态数组赋值语句[4]的格式<变量名|属性名>=<表达式>不同类型数据之间的赋值赋值号与等号的区别Print方法、Cls方法方法调用语句的一般形式[<对象...