摘要:
看了好多篇别人写的题解,感觉好像不少用unordered_map的都有点错误,于是自己来写一篇。 题目链接 #include<bits/stdc++.h> using namespace std; #define maxn 300005 #define ll long long const int 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; #define maxn 100005 #define ll long long typedef pair<int,int> PII; const int mod = 998244353; const int 阅读全文
摘要:
题目链接 题解思路:对于每个位置,求出需要减掉的数 然后在权值线段树上进行二分找答案。 #include<bits/stdc++.h> using namespace std; #define maxn 200005 #define ll long long #define ls l,mid,rt< 阅读全文