当前位置: 首页 > news >正文

wordpress注册数学验证码百度seo排名优化

wordpress注册数学验证码,百度seo排名优化,学校网站前置审批,北京做网站建设有发展吗传送门 文章目录题意#xff1a;思路#xff1a;题意#xff1a; n≤2e5,m≤2e5n\le2e5,m\le2e5n≤2e5,m≤2e5。 思路#xff1a; 这是题是我上个题的一部分#xff0c;算是个小知识点#xff0c;暴力能过。 直接维护一个setsetset#xff0c;让后遍历所有点#xff…传送门 文章目录题意思路题意 n≤2e5,m≤2e5n\le2e5,m\le2e5n≤2e5,m≤2e5。 思路 这是题是我上个题的一部分算是个小知识点暴力能过。 直接维护一个setsetset让后遍历所有点如果当前这个点没有被遍历那么就放入队列中扩展出去每个点最多入队一次而且边数不会很多复杂度大约是(nm)logn(nm)logn(nm)logn // Problem: E. Connected Components? // Contest: Codeforces - Educational Codeforces Round 37 (Rated for Div. 2) // URL: https://codeforces.com/problemset/problem/920/E // Memory Limit: 256 MB // Time Limit: 2000 ms // // Powered by CP Editor (https://cpeditor.org)//#pragma GCC optimize(Ofast,no-stack-protector,unroll-loops,fast-math) //#pragma GCC target(sse,sse2,sse3,ssse3,sse4.1,sse4.2,avx,avx2,popcnt,tunenative) //#pragma GCC optimize(2) #includecstdio #includeiostream #includestring #includecstring #includemap #includecmath #includecctype #includevector #includeset #includequeue #includealgorithm #includesstream #includectime #includecstdlib #define X first #define Y second #define L (u1) #define R (u1|1) #define pb push_back #define mk make_pair #define Mid (tr[u].ltr[u].r1) #define Len(u) (tr[u].r-tr[u].l1) #define random(a,b) ((a)rand()%((b)-(a)1)) #define db puts(---) using namespace std;//void rd_cre() { freopen(d://dp//data.txt,w,stdout); srand(time(NULL)); } //void rd_ac() { freopen(d://dp//data.txt,r,stdin); freopen(d://dp//AC.txt,w,stdout); } //void rd_wa() { freopen(d://dp//data.txt,r,stdin); freopen(d://dp//WA.txt,w,stdout); }typedef long long LL; typedef unsigned long long ULL; typedef pairint,int PII;const int N1000010,mod1e97,INF0x3f3f3f3f; const double eps1e-6;int n,m; int p[N],se[N]; LL rest; bool st[N]; setintv[N],all; struct Node {int a,b,w,flag; bool operator (const Node W) const {return wW.w;} }edge[N];int find(int x) {return xp[x]? x:p[x]find(p[x]); }void get_block() {queueintq;vectorintnow;for(int i1;in;i) {if(!st[i]) {q.push(i); st[i]1;all.erase(i);while(q.size()) {int uq.front(); q.pop();now.clear();for(auto x:all) {if(v[u].count(x)) continue;q.push(x); now.pb(x);st[x]1;int afind(u),bfind(x);se[a]se[b];p[b]a;rest--;}for(auto x:now) all.erase(x);}}} }int main() { // ios::sync_with_stdio(false); // cin.tie(0);cinnm;rest1ll*n*(n-1)/2-m;for(int i1;in;i) all.insert(i),p[i]i;for(int i1;im;i) {int a,b; scanf(%d%d,a,b);v[a].insert(b); v[b].insert(a);}for(int i1;in;i) p[i]i,se[i]1;get_block();vectorintans;for(int i1;in;i) if(ifind(i)) ans.pb(se[i]);sort(ans.begin(),ans.end());printf(%d\n,ans.size());for(auto x:ans) printf(%d ,x);return 0; } /**/
http://www.zqtcl.cn/news/80706/

相关文章:

  • 开发网站公司排行榜深圳保障性住房多少钱一平米
  • 滨州建设厅网站wordpress博客建设与经营
  • 如果建设管理运营一个网站哈尔滨网站建设哪儿好薇
  • 泰州泛亚信息做网站怎么样网站建设暖色调
  • 网站主题颜色快速的企业微信开发
  • 正规的营销型网站建设随州网站seo
  • 学校门户网站建设必要性自己网站上放个域名查询
  • 网站如何做百度推广兖州网站建设哪家好
  • 在线制作视频的网站房产网站如何做
  • 商城网站框架wordpress island.zip
  • 做的较好的拍卖网站海南省建设网站
  • 淮南建网站公司电子商务智能建站
  • 集团网站设计公司南京成旭通网站建设公司怎么样
  • 做网站深紫色搭配什么颜色php违章网站开发
  • 三河市建设局网站公司网站维护工作内容
  • 石景山 网站建设网站的折线图怎么做
  • 网站的打开速度柳市网站托管
  • 建站模板系统wordpress.安装
  • 三亚用什么软件约拱墅抖音seo搜索排名推广
  • 企业淘宝网站备案郑州的兼职网站建设
  • 嘉兴做网站建设的公司宁波市建设厅网站首页
  • 深圳做网站那家好新能源汽车价格表图片及价格表
  • 三门峡市建设局网站深圳市建设网站公司
  • 简述网站建设的具体步骤提供网络推广服务
  • 自建网站模板下载wordpress配置邮件服务器
  • 阿里巴巴新网站怎么做运营贵金属十大正规app平台排名
  • 漯河网站建设公司wordpress 评论 倒序
  • 江苏强荣建设有限公司 网站做网站阿里巴巴好还是百度好
  • wordpress 更换字体营口seo
  • 在国外做电商网站打开网站图片弹入指定位置代码