摘要: SNOI 2019 字符串 "题目" 题解: 解法一: 记一个数组$f$,$f[i]=\min_j\ s[j]\neq s[j+1] (j\geq i)$,直接sort即可,复杂度$O(nlogn)$ include using namespace std; namespace Tzh{ const 阅读全文
posted @ 2019-04-29 10:48 Jack_the_Ripper 阅读(185) 评论(1) 推荐(0) 编辑