11920专题

UVA - 11920 0 s, 1 s and ? Marks

Description  0 s, 1 s and ? Marks  Given a string consisting of 0, 1 and ? only, change all the ? to 0/1, so that the size of the largest group is minimized. A group is a substring that contain

UVA 11920 - 0 s, 1 s and ? Marks(贪心)

0 s, 1 s and ? Marks  Given a string consisting of 0, 1 and ? only, change all the ? to 0/1, so that the size of the largest group is minimized. A group is a substring that contains either