[存代码] #include<bits/stdc++.h> #define N 1000001 #define MAXN 100001 using namespace std; int n,m,Mo,h1,top,h,t,ans; int ru[N],x[N],y[N],w1[N],to[N]; int p[MAXN],w2[MAXN],x2[MAXN]; int es[MAXN],xy[MAXN],f[MAXN]; int df[MAXN],wu[MAXN],st[MAXN],cn[MAXN…