摘要: 题目描述 Byteasar, king of Byteotia, has finally decided to retire. He has two sons, however, and is unable to decide which one one of them should succeed 阅读全文
posted @ 2018-09-29 16:39 beretty 阅读(279) 评论(1) 推荐(0) 编辑
摘要: 题意 【题目描述】 一个仅由a,b,c三种字符组成的字符串,可以对其进行如下两种操作: 选择两个相邻字符,将第一个字符替换成第二个。 选择两个相邻字符,将第二个字符替换成第一个。 这样,通过任意多次的操作,可以得到许多不同的串,为了追求字符的平衡, 我们要求a,b,c三种字符在字符串中出现的次数两两 阅读全文
posted @ 2018-09-29 10:20 beretty 阅读(1096) 评论(0) 推荐(0) 编辑