/* written by Pankaj Kumar. country:-INDIA */ #include using namespace std; typedef long long ll; vector tree[100001]; vector degree(100001,0); // partially accepted ll dfs(ll n,ll root,ll value) { // cout<<"in dfs root is "<n||root<1) { // cout<<"out of bound "<>test; while(test--) { solve(); } return 0; } /* stuff you should look before submission * int overflow * special test case (n=0||n=1||n=2) * don't get stuck on one approach if you get wrong answer */