#include<bits/stdc++.h> using namespace std; const long long MOD = 1000000007; int main(){ int n, maxlength = 0, left = 0, right = 0; vector<int> start; string s; cin>>n>>s; while(right < n){ while(right < n && s[right] == ...