思路 分类讨论1)当,不需要修改2)当,循环节为3)当,循环节为然后找循环节的每个位置上出现最多的字母,然后并修改为该字母 代码 // Problem: 牛牛与字符串border // Contest: NowCoder // URL: https://ac.nowcoder.com/acm/contest/9982/C // Memory Limit: 524288 MB // Time Limit: 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc...