切割字符串
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.
题目描述
小明出题出累了,去搬了一道题。
给你一个01串,长度是。
你需要从中切出个区间满足:
(1),对所有成立。
(2)对所有成立。
问,最大的是多少?
输入格式
第一行输入。
第二行输入一个长度为的串。
输出格式
输出一个数字表示答案。
7
0101010
3
30
000011001110101001011110001001
9
data3.in
data3.out
data4.in
data4.out
data5.in
data5.out
数据范围
对于10%的数据:。
对于40%的数据:。
对于60%的数据:。
对于100%的数据:。
0127测试
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2026-1-27 8:30
- End at
- 2026-1-27 11:42
- Duration
- 3.2 hour(s)
- Host
- Partic.
- 36