编程题: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);
}
}

posted on 2025-05-21 22:36  Swishy  阅读(8)  评论(0)    收藏  举报