【前后缀分解】AtCoder ABC393 D.Swap to Gather
摘要:
题目 https://atcoder.jp/contests/abc393/tasks/abc393_d 题意 给定一个长为 \(n\) 的 \(01\) 字符串 \(s\),可以执行任意次以下操作: 选择两个相邻的下标,交换这两个位置上的字符,每次操作的代价为 \(1\)。 求让全部字符 \(1\ 阅读全文
posted @ 2025-02-22 22:58 RomanLin 阅读(31) 评论(0) 推荐(0)
浙公网安备 33010602011771号