摘要:
看 某个点的入队次数 times>=n #include <bits/stdc++.h> using namespace std ; const int N=1e5+2,inf=0x7f7f3f; struct E{ int y,z; E(int y0,int z0){ y=y0,z=z0; } f 阅读全文
posted @ 2023-02-17 22:54
towboat
阅读(17)
评论(0)
推荐(0)
摘要:
本例 求树上两点的距离 #include <bits/stdc++.h> using namespace std ; const int N=5*1e6+2,M=5*N; int nxt[M],hd[N],all,go[M],n; int dep[N],f[N][22]; void add(int 阅读全文
posted @ 2023-02-17 14:03
towboat
阅读(28)
评论(0)
推荐(0)