还是仙人掌,和1023一样的考虑方法比1023简单但比1040难环形dp的处理方法和1040一样 type node=record po,next:longint; end; ..,..] of longint; e:..] of node; a,p,fa,dfn,low:..] of longint; h,p0,p1,q0,q1,i,x,y,n,m,len:longint; function max(a,b:longint):longint; begin if a>b then exit(a)…