• 2024-11-11计算特定条件下树的公共祖先的深度和
    蟠桃树【算法赛】#include<bits/stdc++.h>#defineintlonglong#definemod998244353usingnamespacestd;usingpii=pair<int,int>;vector<int>tr[100005];intn;strings;intans;intcnt[100005][2];voiddfs(intx,intfa,intdep){