pynyousa 2021-05-08 18:47:28
点我顶贴
收藏
删除
#include <iostream>
#include <cstring>
using namespace std;
char Letter[28] = {"0abcdefghijklmnopqrstuvwxyz"};
int main()
{
int s,t,w;
cin>>s>>t>>w;
string l;
cin>>l;
int i,j,k,key = 1;
int y =1;
for(y = 1;y<=5;y++)
{
key = 1;
for(i = w-1;i>=0&&key==1;i--)//l[i]
{
k = w-i;
for(j = s+i+1;j<=t-k+1&&key ==1 ;j++)//Letter[j]
{
if(l[i]==Letter[j-1])
{
for(;i<w;i++,j++)
l[i] = Letter[j];
key = 0;
cout<<l<<endl;
}
}
}
}
return 0;
}