有可能你的 333 操作这么写的:
for(int i=0;i<26;++i){ L=R+1; R=L+qwq.cnt[i]-1; update(1,1,n,L,R,i+'a'); }
然而 LLL 可能大于 RRR,需要特判。