编程题:31
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s = scanner.nextLine();
int n = scanner.nextInt();
n = n % s.length();
String result = s.substring(n) + s.substring(0, n);
System.out.println(result);
}
}
浙公网安备 33010602011771号