https://www.luogu.org/record/25980964
RE+WA
by 决心少年 @ 2019-10-30 17:33:34
@[秦时明月zqy](/space/show?uid=215603)
```
int he(int x,int y)//把xy两个点合并,在一个集合(树)
{
int a=getfa(x);
int b=getfa(y);
if(a==b)
return 0;//改这里
fu[b]=a;
return 1;
}
```
by getchar123 @ 2019-10-30 17:36:34
@[getchar123](/space/show?uid=102754)
return 后再?
by 决心少年 @ 2019-10-31 13:03:18
另外,RE怎么优化?
by 决心少年 @ 2019-10-31 13:09:25
@[秦时明月zqy](/space/show?uid=215603) 数组开小了
by Qllllll @ 2019-10-31 13:41:21
@[Qllllll](/space/show?uid=210311)
https://www.luogu.org/record/26065723
还是RE
by 决心少年 @ 2019-10-31 22:22:19
@[秦时明月zqy](/space/show?uid=215603) 5000个点 20W条边 你开小了...
by Qllllll @ 2019-11-01 12:39:36
@[Qllllll](/space/show?uid=210311)
~~你看我源代码了吗?~~
我改了呀?
https://www.luogu.org/record/26065723
by 决心少年 @ 2019-11-01 13:04:11
@[秦时明月zqy](/space/show?uid=215603) 头文件下面那个数组难道不是只开了1000吗
by Qllllll @ 2019-11-01 13:08:51
@[Qllllll](/space/show?uid=210311)
尴尬。。。
by 决心少年 @ 2019-11-01 13:12:06