【codeforces】Round #604 (Div. 2)(A. B.)
A. Beautiful String
链接
http://codeforces.com/contest/1265/problem/A
题意
给你一个字符串,字符串种只包含 ‘a’, ‘b’, ‘c’, ‘?’ 四种字符,要求使用 ‘a’, ‘b’, ‘c’ 替换字符串种的 ‘?’ 使得字符串是一个 Beautiful String(字符串中没有连续的两个字符是相同的)。
思路
遍历字符串,若当...
原创
2019-12-06 15:24:14 ·
149 阅读 ·
0 评论