Statement
Given an undirected tree, count how many paths that have at least length of k.
Input
The first line is n (n <= 10 ^ 5) and k (k <= n) — the number of vertices and k as mentioned above.
Next n — 1 line represents an edge.
5 2
1 2
2 3
2 4
4 5
Output
6
Explain
All paths that have at least length of k:
(1,3): 1-2-3
(1,4): 1-2-4
(1,5): 1-2-4-5
(2,5): 2-4-5
(3,4): 3-2-4
(3,5): 3-2-4-5