题目见:洛谷P3884
#include<bits/stdc++.h>
using namespace std;
struct trees {
int Left, Right, Father;
};
const int N = 110;
trees a[N];
int depth[N];
int layer[N];
bool h[N];
void dfs (int x, int dep) {
if (x == 0
题目见:洛谷P3884
#include<bits/stdc++.h>
using namespace std;
struct trees {
int Left, Right, Father;
};
const int N = 110;
trees a[N];
int depth[N];
int layer[N];
bool h[N];
void dfs (int x, int dep) {
if (x == 0