백준알고리즘 1149번 RGB거리
백준알고리즘 https://www.acmicpc.net/problem/1149 설명은 여기..http://spillmoon.tistory.com/176 import java.util.Scanner; public class Main { public static void main(String args[]) throws Exception { Scanner scan = new Scanner(System.in); int homeCount = Integer.parseInt(scan.nextLine().trim()); int inputArray[][] = new int[homeCount][3]; int memoArray[][] = new int[homeCount][3]; for(int i=0; i