https://www.acmicpc.net/problem/2675 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[] result = new String[num]; for(int i=0; inum; i++) { String[] arr = sc.nextLine().split(" "); ..