import java.util.*; public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); String str = in.nextLine(); //len:每次外层循环截取的子串固定长度(以该固定长度移动),从最大开始递减 for(int len = str.length(); len >=1; len-- ){ //以固定长度滑动截取 for(int i = 0; i+len &...