Description同じ文字が連続する最長区間長い文字列 s が与えられたとき、連続して同じ文字が続く最も長い部分がどのくらいの長さになるかを求める問題です。入力入力は1行のみで、文字列 s が与えられます (1 ≤ |s| ≤ )。出力同じ文字が連続する最長区間の長さを示す整数を1つ出力してください。例入力出力aabbbaaaacc4hello2aabbbaaaa4aaaa4ConstraintsTime limit: 1.6 secondsMemory limit: 512 MBOutput limit: 1 MBTo check your solution you need to sign inSign in to continueSign in to your accountSign in with GoogleSign in with FacebookSign in with MicrosoftSign in with emailBy continuing, you agree to our Terms of Service and Privacy Policy.