gistfile1.txt import java.util.Scanner;public class Main { private static Scanner in; public static void main(String[] args) { int n,x,y; in=new Scanner(System.in); while(true) { StringBuilder s=new StringBuilder(""); n=in.nextInt(); x=in.n
import java.util.Scanner; public class Main { private static Scanner in; public static void main(String[] args) { int n,x,y; in=new Scanner(System.in); while(true) { StringBuilder s=new StringBuilder(""); n=in.nextInt(); x=in.nextInt(); y=in.nextInt(); for(int i=0;i0) { System.out.println(s.substring(x,y)); } else if(x>y&&y>0) { System.out.println(s.substring(y,x)); } } } }