#include<iostream> #include<string> using namespace std; string str,s; int p1,p2,p3; void rep(int i){ if(p1 == 1){ if(p3 == 1){ char c = str[i-1] + 1; for(int j = i; c!=str[i+1]; j++){ for(int q = 0; q < p2; q++){ ...