}
//考虑右端点
if(L[1].rx-1>mmax){
mmax=L[1].rx-1;
ret=n;
}
}
printf("%d\n",ret);
pos[id]=ret;
update(1,ret,1);
}
}
}
return 0;
}