正文
增加 3 行删除 3 行
61 行未改动626364656667686970717273747576777879809 行未改动61 行未改动return r;}inline void get_kmin() {int L=1,R=n;ll u=0;//u是当前排名for(int d=1,p,ed;;d++) {if(u>=k) break;for(p=L;;p=ed+1) {ed=binary(p,R,d);if(suml[ed]-suml[L-1]+u>=k) break;}cout<<s[sa[p]+d-1];u+=suml[p-1]-suml[L-1]-(ll)(d-1)*(p-L);u+=ed-p+1; L=p,R=ed;}cout<<'\n';}```9 行未改动61 行未改动626364656667686970717273747576777879809 行未改动61 行未改动return r;}inline void get_kmin() {int L=1,R=n;ll u=0;//u是当前排名for(int d=1,p,ed;;d++) {if(u>=k) break;for(p=L;;p=ed+1) {ed=binary(p,R,d);if(suml[ed]-suml[L-1]+u>=k) break;}cout<<s[sa[p]+d-1];u+=suml[p-1]-suml[L-1]-(ll)(d-1)*(p-L);u+=ed-p+1; L=p,R=ed;}cout<<'\n';}```9 行未改动