并查集做法,30分QwQ

P3958 [NOIP2017 提高组] 奶酪

@[Belarus](/space/show?uid=223392) ```if(get(fa[i])==get(fa[j]))```这里应该是```if(get(fa[upper[i]])==get(fa[lower[j]]))```叭
by 0nullptr @ 2019-10-28 14:14:13


`signed main()` 是什么鬼
by Hjcc @ 2019-10-28 14:14:20


@[一个python屑](/space/show?uid=82672) 哦!谢谢dalao%%%%%
by Belarus @ 2019-10-28 14:15:54


@[侯嘉诚](/space/show?uid=189435) 是一个神奇的东西
by Belarus @ 2019-10-28 14:16:57


@[Belarus](/space/show?uid=223392) 和`int main()`有什么区别
by Hjcc @ 2019-10-28 14:20:26


@[侯嘉诚](/space/show?uid=189435) #define int long long的时候用的 这个不是基本技巧吗?
by Algha_Porthos @ 2019-10-28 14:21:51


@[自动AK机](/space/show?uid=53058) 直接把`int`删掉不就好了吗。。。
by Hjcc @ 2019-10-28 14:23:42


@[侯嘉诚](/space/show?uid=189435) 有这种操作??
by Belarus @ 2019-10-28 14:26:33


@[侯嘉诚](/space/show?uid=189435) 你直接写一个main不符合C++的语法啊qwq
by 0nullptr @ 2019-10-28 14:29:39


~~建议重学C++~~
by Belarus @ 2019-10-28 14:32:40


| 下一页