@VecMD
2016-07-12T20:33:43.000000Z
字数 414
阅读 1667
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
const int maxn = 200007;
char str[maxn];
int j, dp[maxn][26];
int main()
{
std::cin >> str + 1;
for(int i = 1; str[i]; i ++){
if(str[i] == str[i - 1]){
for(j = 'a'; j <= 'z'; j ++){
if(j != str[i - 1] && j != str[i + 1]) break;
}
str[i] = j;
}
}
std::cout << str + 1 << "\n";
}