摘要: 题意:给你n大小的数组排列,现在如果有俩个连续的数满足ai < ai+1,那么你可以删去其中的一个数,现在问:在进行上述操作后,是否有可能使得数组元素为1 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #include<a 阅读全文
posted @ 2020-07-27 15:41 吉吉的奥利奥 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e6+10; const int M=1e6+10; const ll inf=1e18+10; int head[N],ver[N],ed 阅读全文
posted @ 2020-07-27 13:21 吉吉的奥利奥 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 并查集内容参考链接:https://blog.csdn.net/wmy0217_/article/details/104972191 代码参考:https://blog.csdn.net/Luoriliming/article/details/103325459 int n,fa[50]; char 阅读全文
posted @ 2020-07-27 13:18 吉吉的奥利奥 阅读(159) 评论(0) 推荐(0) 编辑