摘要: https://codeforces.com/gym/103388/problem/N 题目理解: 就是给了一个 $3 \cdot 105$的数组,大概 $ 3 \cdot 105$ 个查询,每次询问某个区间内数组中大于等于某个数的数有几个。 AC代码 #include<bits/stdc++.h> 阅读全文
posted @ 2022-02-16 11:47 HIVM 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 洛谷 P3834 静态区间第k小 #include<bits/stdc++.h> using namespace std; #define ll long long const int maxn = 200005; int n,q,tot,rt[maxn],a[maxn],b[maxn]; stru 阅读全文
posted @ 2022-02-16 11:08 HIVM 阅读(23) 评论(0) 推荐(0) 编辑