我好菜啊呜呜 @ 2018-05-27 20:49:24
import java.util.Scanner;
public class P1914 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
int n=input.nextInt();
String s=input.next();
for(int i=0;i<s.length();i++){
System.out.printf("%c",s.charAt(i)+(n%26));
}
System.out.println();
}
}
by 我好菜啊呜呜 @ 2018-05-27 20:49:58
class名提交时替换成Main了
by 氷スイカ233 @ 2018-05-27 20:53:24
printf什么鬼?不是println吗?
by OccDreamer @ 2018-05-27 21:09:42
@Ice_watermelon233 你又怎么会Java的?我记得你学的是西佳佳啊?
by 氷スイカ233 @ 2018-05-28 21:50:14
@Dr冯 我都会!
by OccDreamer @ 2018-05-29 11:26:16
@Ice_watermelon233 额……
by pascalfans @ 2018-06-18 20:15:49
System.out.printf("%c",s.charAt(i)+(n%26));
(虽然我没学过java)