首页 > 小绿的房子
头像 一只小牛a_曾庆伟
发表于 2024-06-03 13:09:03
//E小绿的房子 #include <bits/stdc++.h> using namespace std; const int N = 100010; int n; int f[N];  展开全文
头像 比赛爆零三百次
发表于 2024-06-16 14:14:50
简单的分类讨论,存储每个结点的父亲fa[i],深度dep[i];整棵树的最大深度maxndep;以及深度为i的结点的集合mem[i] #include<iostream> #include<vector> using namespace std; const int N = 展开全文

等你来战

查看全部