In the first line contains a single positive integer $T$, indicating number of test case.
In the second line there are two numbers $n$, $m$. $n$ is the size of Duoladuo, $m$ is the number of Liao's questions.
The next line contains $n$ integers $A_1, A_2, ...A_n$, means the value of ith vertex.
In the next $n-1$ line contains tow numbers $u$, $v$. It means there is an edge between vertex $u$ and vertex $v$.
The next $m$ lines will be the Liao's question:
u v k
$1 \leq T \leq 10,1 \leq n \leq 100000,1 \leq m \leq 100000,1 \leq u,v \leq n,1 \leq k,\ A_i \leq 1000000000$.