个人记录111#include<bits/stdc++.h> #define int long long using namespace std; const int N=1e5+10; int n,m,a[N],t,k,b[N],dep[N],maxn,sum,d; vector e[N];…