树结构,生成树

Sorry, there is no problem in the problem set