Rosetta Problems
← 問題一覧に戻る
特定の文字の最長連続長
文字列
S
S
S
と文字
c
c
c
が与えられ、
S
S
S
の中で
c
c
c
が連続して並ぶ部分の最大の長さを求める。
関連リンク
atcoder/awc0124_a
leetcode/max-consecutive-ones