IntermediateRating 1400
Same Letter After k Changes
You may change at most k characters of the string to any letter. Print the length of the longest block of identical letters you can get.
Input
The string, then k.
Output
One integer.
Sample 1
Input
ABAB 2
Output
4
Sample 2
Input
AABABBA 1
Output
4
Output appears here