bzoj1083 [SCOI2005]繁忙的都市
发布日期:2021-08-13 04:05:26 浏览次数:41 分类:技术文章

本文共 708 字,大约阅读时间需要 2 分钟。

裸kruskal算法

1 #include
2 #include
3 #include
4 #include
5 #include
6 #include
7 #include
8 #include
9 #include
10 #include
11 #include
12 #include
13 using namespace std;14 int n,m,fa[333],q,w,e,tot,o;15 int getint()16 {17 int ret=0,f=1;char ch=getchar();18 while(ch<'0'||ch>'9'){ if(ch=='-')f=-1;ch=getchar();}19 while(ch>='0'&&ch<='9')ret*=10,ret+=ch-'0',ch=getchar();20 return f==-1?-ret:ret;21 }22 struct bian23 {24 int u,v,w;25 bian(int u=0,int v=0,int w=0):u(u),v(v),w(w){}26 bool operator < (const bian &a)const27 {28 return w

 

转载于:https://www.cnblogs.com/HugeGun/p/5151607.html

转载地址:https://blog.csdn.net/weixin_30675247/article/details/98966468 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Jquery.Sorttable 桌面拖拽自定义
下一篇:Linux安装Monaco字体

发表评论

最新留言

很好
[***.229.124.182]2024年03月26日 16时52分18秒