main
黄海 2 years ago
parent 1aaecda87f
commit 8cafe0b17a

@ -0,0 +1,32 @@
#include <bits/stdc++.h>
using namespace std;
const int N = 110;
// 并查集
int p[N];
int find(int x) {
if (x == p[x]) return x;
return p[x] = find(p[x]);
}
// 合并集合
bool join(int a, int b) {
if (find(a) == find(b)) return false;
p[find(a)] = find(b);
return true;
}
int main() {
int n;
cin >> n;
// 初始化并查集
for (int i = 1; i <= n; i++) p[i] = i;
for (int i = 1; i <= n; i++) {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
}
return 0;
}

@ -0,0 +1,17 @@
## 环境部署
### 一、科学上网
**[$CatCloud$](https://catcloud.app/#/)**
>昵称:$AI$教育推广者
邮箱10402852@qq.com
密码D******7u@\*\*
> ![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401290812575.png)
> **注** 因VPN存在一些不可抗力原因随时有无法访问网络的可能需要准备一个备用软件防止无法正常访问$Github$,这个暂时不用考虑购买,如果上面的软件不好用时再考虑购买。
**[加速猫](https://cf.jsmao.club/user/shop)**
**[加速猫防失联发布页](https://x-go.gitbook.io/jsm/)**
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401290756742.png)
>**注**:支持支付宝和微信两种支付方式。
Loading…
Cancel
Save