警示后人
查看原帖
警示后人
472950
封禁用户楼主2025/2/6 12:21

多测

while(pt1>m){ls[pt1]=rs[pt1]=0;pt1--;}

不清空

while(pt1>m){ls[pt1]=rs[pt1]=0;pt1--;}for(auto uu:V){mxm[rot[uu]]=-4000000005;ls[rot[uu]]=rs[rot[uu]]=0;}V.clear();

上下查一查

for(int i=1;i<=m;i++)mxm[rot[i]=++pt1]=-4000000005;

要初始化

node(){M1=M2=-4000000005;F1=0;F2=-1;}
	node(int MM,int FF){M1=MM;F1=FF;M2=-4000000005;F2=0;}
ans=-2000000005
for(int i=1;i<=m;i++)mxm[rot[i]=++pt1]=-4000000005;

祝你们 A 了这道题。

2025/2/6 12:21
加载中...