From 8cafe0b17ae9f9900d7c05e0825ee1744b080c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Mon, 29 Jan 2024 08:16:44 +0800 Subject: [PATCH] 'commit' --- TangDou/51NOD/1951.cpp | 32 ++++++++++++++++++++++++++++++++ TangDou/ChatGPT/环境部署.md | 17 +++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 TangDou/51NOD/1951.cpp create mode 100644 TangDou/ChatGPT/环境部署.md diff --git a/TangDou/51NOD/1951.cpp b/TangDou/51NOD/1951.cpp new file mode 100644 index 0000000..eacd262 --- /dev/null +++ b/TangDou/51NOD/1951.cpp @@ -0,0 +1,32 @@ +#include +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; +} \ No newline at end of file diff --git a/TangDou/ChatGPT/环境部署.md b/TangDou/ChatGPT/环境部署.md new file mode 100644 index 0000000..8e355da --- /dev/null +++ b/TangDou/ChatGPT/环境部署.md @@ -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) +>**注**:支持支付宝和微信两种支付方式。