实现的功能:将序列区间反转,并维护 详见BZOJ3223 var i,j,k,l,m,n,head,a1,a2:longint; s1:ansistring; a,b,c,d,fat,lef,rig:..] of longint; procedure swap(var x,y:longint);inline; var z:longint; begin z:=x;x:=y;y:=z; end; procedure ext(x:longint);inline; begin ) then exit;…