SP7296 CNTTREE - Trees Again
Description
Given a tree, you need to count how many subtrees with diameter
Input Format
The first line contains the number of test cases T. T test cases follow. For each test case, the first line contains N and K. The following N - 1 lines contain two integers ai and bi, indicating an edge between nodes ai and bi in the tree. There is a blank line after each test case.
Output Format
Output T lines, one corresponding to each test case, containing the required answer.