摘要:
直接抄WIDA的pbds板子 #include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef pair<int, int 阅读全文
摘要:
区间众数要求即有次数又要数字最小 #include<bits/stdc++.h> using namespace std; #define x first #define y second typedef pair<int,int> PII; typedef long long ll; typede 阅读全文
摘要:
关键在把矩形框点转化为点的影响放大为矩形,此时转变为求一个点的权值最大 #include<bits/stdc++.h> using namespace std; #define x first #define y second typedef pair<int,int> PII; typedef l 阅读全文
摘要:
因为洛谷出现UE在acwing提交,输入格式略有修改 #include<bits/stdc++.h> using namespace std; #define x first #define y second typedef pair<int,int> PII; typedef long long 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; #define x first #define y second typedef pair<int,int> PII; typedef long long ll; typedef unsigned long l 阅读全文
摘要:
注意size信息应该存放在info里和tag运算,已经tag是表示子树未处理的信息 #include<bits/stdc++.h> using namespace std; #define x first #define y second typedef pair<int,int> PII; typ 阅读全文