https://www.acmicpc.net/problem/9086 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); sc.nextLine(); String[] arr = new String[num]; for(int i=0; inum; i++) { String s = sc.nextLine(); arr[i] = String...