ICode9

精准搜索请尝试: 精确搜索
  • [AcWing 4290] 小希的迷宫2022-08-16 17:31:52

    并查集 + 树的判定 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e6 + 10; int n; int p[N]; int find(int x) { if (p[x] != x) p[x] = find(p[x]); return p[x]; } void merge(int a, int b) {

  • 把两个图标搞到一起当icon2022-07-12 16:36:50

    https://blog.csdn.net/leesoft/article/details/4290 https://www.codercto.com/a/50922.html

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有