题目 模板 #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; const int inf=0x3f3f3f3f; const int maxn=2e5+10; struct node {int t,nxt; }edge[……