백준알고리즘 2156번 포도주 시식
백준알고리즘 https://www.acmicpc.net/problem/2156 풀이는 http://zoonvivor.tistory.com/133를 참고하자import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int count = Integer.parseInt(scan.nextLine().trim()); int inputArray[] = new int[count]; int memoArray[] = new int[count]; for(int i=0; i = 1) { memoArray[0] = inputArray[0]; } if(count ..