摘要: 首先注意到最长字符相同的连续子串长度最小为 \[l=\max(\lceil\frac a{b+1} \rceil,\lceil \frac b{a+1} \rceil)=\frac{\max(a,b)}{\min(a,b)+1} \]则不难发现,要使字典序最小,则字符串大概长这样: \[|A\dot 阅读全文
posted @ 2026-05-09 15:35 constexpr_int 阅读(30) 评论(0) 推荐(0)