For Sample 3, in the first query, after the first two coverings, the node weights of the tree become {0,0,0,0,1}\{0,0,0,0,1\}{0,0,0,0,1}, and the valid point pairs in subtree 3 are (3,4)(3,4)(3,4).
In the second query, after the first three coverings, the node weights of the tree become {1,1,0,0,1}\{1,1,0,0,1\}{1,1,0,0,1}, and the valid point pairs in subtree 1 are (1,3),(1,4),(2,3),(2,4),(3,4)(1,3),(1,4),(2,3),(2,4),(3,4)(1,3),(1,4),(2,3),(2,4),(3,4).