最多连续的零
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
给定一个 01 序列 (仅含 0
和 1
),你可以修改最多 个 1
为 0
。求修改后,最长的连续 0
的个数。
Format
Input
第一行两个整数 和 。
第二行长度为 的字符串 。
Output
一行一个整数表示答案。
Samples
样例输入
6 2
011011
样例输出
4
Limitation
- :
- :
- :
1s, 512M for each test case.
20250515周赛
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-5-29 16:45
- End at
- 2025-5-29 18:15
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 23