#include<iostream> #include<string> using namespace std; int main(void) { string str; cin >> str; int i = 0; for(;i < str.size();) { int count = 1; int j = i + 1; while(j<str.size() && str[i] == str[j]) { j++; ...