SP10707 COT2 - Count on a tree II
Description
You are given a tree with **N** nodes. The tree nodes are numbered from **1** to **N**. Each node has an integer weight.
We will ask you to perform the following operation:
- **u v** : ask for how many different integers that represent the weight of nodes there are on the path from **u** to **v**.
Input Format
N/A
Output Format
N/A