#P1597. Kth Subtree

Kth Subtree

题目描述

Click here to read PDF of this problem

输入格式

As shown in the PDF.

输出格式

As shown in the PDF

样例

2 1 
1 2
1
2 3 
1 2
2

提示

by 20张席畅