- 博客(3)
- 收藏
- 关注
原创 p1008 循环*3
状态:怕不是“石乐志”用了个循环找one,然后求two,tre,最后桶排(判重)顺便输。,#include<iostream>#include<cstdio>using namespace std;int one[4],two[4],tre[4];int tong[10],mark;void t()//桶 在这里!在这里!{ if(tre[0]...
2018-08-11 11:15:05
107
原创 并查集
并查集板子:void make(int x)//建立{ me[x]=x;}int find(int x)//寻找根节点{ if(me[x]==x)return x;//自己就是根节点 else find(me[x]);//不是,找爸爸的爸爸}int join(int x,int y)//合并{ int x1=find(x); ...
2018-03-11 18:37:10
136
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人