Codeforces Round 910 (Div. 2)

Codeforces Round 910 (Div. 2) A. Milica and String 解题思路: 统计给定字符串\(s\)中的\(B\)的数量,记录为\(cnt\)。 如果\(cnt == k\):输出0; 如果\(cnt < k\):从左往右数,将第\(cnt - k\)个\(A\
posted @ 2023-11-24 17:02  value0  阅读(23)  评论(0编辑  收藏  举报