First line contains an integer $T$, which indicates the number of test cases.
Every test case begins with an integers $N$, which is the numbers of nodes in the tree.
The following $N - 1$ lines describe the edges of the tree, and every line is formatted as '$u\ v$', which indicates there is a edge between node $u$ and node $v$.
The next line contains $N$ intergers, $c_1$, $c_2$, $\cdots$, $c_N$, and $c_i$ is the initial color of the frog living at node $i$.
Then a number $M$ follows, which indicates the number of queries, and following $M$ lines describe the quries as format bellow.
$\cdot$ $1 \leq T \leq 100$.
$\cdot$ For 85% data, $1 \leq N, M \leq 1000$.
$\cdot$ for 100% data, $1 \leq N, M \leq 10^5$.
$\cdot$ for every node, $1 \leq c_i \leq N$.
$\cdot$ for every edge, $1 \leq u, v \leq N$.
$\cdot$ for every query, $1 \leq u, c \leq N$.