import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
String s = input.nextLine();
int m = input.nextInt();
char a[] = s.toCharArray();
int i, j;
for (i = 0; i < s.length(); i++) {
for(j=1;j<=m;j++){
if(a[i]=='z') a[i]='a';
else a[i]=(char)(a[i]+1);
}
}
for(i=0;i<s.length();i++)
System.out.print(a[i]);
System.out.println();
}
}
字符的变化
最新推荐文章于 2022-09-21 13:11:42 发布