Problem3337--【Div2】图论-树-DFS - abc368_d - 最小外接树

3337: 【Div2】图论-树-DFS - abc368_d - 最小外接树

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description



Sample Input Copy

7 3
1 2
1 3
2 4
2 5
3 6
3 7
1 3 5

Sample Output Copy

4

HINT

Source/Category