摘要:
AT4298 [ABC118D] Match Matching #include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<map> #include<algorithm> #include<queue 阅读全文
摘要:
传送门 插入 xx 数 删除 xx 数(若有多个相同的数,因只删除一个) 查询 xx 数的排名(排名定义为比当前数小的数的个数 +1+1 ) 查询排名为 xx 的数 求 xx 的前驱(前驱定义为小于 xx,且最大的数) 求 xx 的后继(后继定义为大于 xx,且最小的数) #include<iost 阅读全文
摘要:
题目传送门1 较好的博客传送门 #include<iostream> #include<vector> #include<cstdio> #include<algorithm> #include<map> #define INF 0x7f7f7f using namespace std; int n 阅读全文
摘要:
- [P2756 飞行员配对方案问题](https://www.luogu.com.cn/problem/P2756)- [P3701 「伪模板」主席树](https://www.luogu.com.cn/problem/P3701)- [P2764 最小路径覆盖问题](https://www.lu 阅读全文
摘要:
传送 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 int cnt=0,original_value[9000001]={0},a[ 阅读全文
摘要:
指路例题 1 /* 2 5 10 3 59 46 14 87 41 4 0 2 1 5 0 1 1 14 6 0 1 1 57 7 0 1 1 88 8 4 2 4 9 0 2 5 10 0 2 4 11 4 2 1 12 2 2 2 13 1 1 5 91 14 */ 15 #include<io 阅读全文
摘要:
#include<iostream> #include<cstring> #include<queue> #include<cstdio> #define INF 0x3f3f3f3f using namespace std; int N=0,last[1000001],dis[1000001],v 阅读全文
摘要:
指路洛谷 #include<iostream> #include<sstream> #include<cstring> #include<cstdio> #include<queue> using namespace std; const long long INF=2147483647; int 阅读全文
摘要:
题目描述 Bytetown城市要进行市长竞选,所有的选民可以畅所欲言地对竞选市长的候选人发表言论。为了统一管理,城市委员会为选民准备了一个张贴海报的electoral墙。 张贴规则如下: electoral墙是一个长度为N个单位的长方形,每个单位记为一个格子; 所有张贴的海报的高度必须与electo 阅读全文
摘要:
树剖,我又来了!!! 阅读全文