import java.util.*; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); while(in.hasNext()){ char[] arr = in.nextLine().toCharArray(); //以i或者(i,i+1)位置的节点为中间节点,向两边辐射 int max = 0; for(int ...