Problem Statement
Repetitions
Implementation
void solve() {
string s;
cin >> s;
ll ans = 0;
rep(i, sz(s)) {
char c = s[i];
ll cnt = 0;
while (i < sz(s) && s[i] == c) cnt++, i++;
i--;
ans = max(ans, cnt);
}
cout << ans << "\n";
}