Wjb789321 @ 2020-06-18 18:03:05
import java.util.Scanner;
public class Passwd {
public static void main(String[] args) {
// TODO 自动生成的方法存根
Scanner input = new Scanner(System.in);
int n = input.nextInt();
String s = input.next();
char[] str = new char[60];
for(int i = 0;i<s.length();i++) {
if(n==26) {
System.out.println(s);
break;
}
str[i] = (char) (s.charAt(i)+n);
}
for(int i = 0;i<str.length;i++) {
System.out.print(str[i]);
}
}
}
by CrTsIr400 @ 2020-06-18 18:07:28
@Wjb789321 高仿头像可还行(
建议使用C++
by Wjb789321 @ 2020-06-18 18:13:43
@2020严誉沣 没学过C++。。。@-@
by 0x80mem @ 2020-06-18 18:17:14
字母是循环的啊
by 0x80mem @ 2020-06-18 18:18:45
'z'+1应该是'{'吧 没学过Java