#include<bits/stdc++.h> using namespace std; const int T = 110; vector<int> F[T]; vector<int> a[T]; int N,Q; vector<int> son[4]; void dfs(int k,int fa) { if(son[k].size()==1) { return; } if(N>=3) { int tmp[2]; int count = 0; ...