【树形dp 换根法 BFS】2581. 统计可能的树根数目https://blog.csdn.net/he_zhidan/article/details/139874100?spm=1001.2014.3001.5501