摘要: https://acm.hdu.edu.cn/showproblem.php?pid=7055 题目问每个子串中每种字母的个数的平方的累加和 每个字母单独统计,\(ans = \sum_{i=1}^n\sum_{j=i}^n(s[j] - s[i - 1])^2\) 化简:\(= n\sum_{i= 阅读全文
posted @ 2021-09-14 15:06 wlhp 阅读(22) 评论(0) 推荐(0)