시간 & 메모리 제한 문제 입력 & 출력 package com.Back; import java.io.BufferedReader; import java.io.InputStreamReader; public class Back_2156 { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); int [] cups = new int[N]; int [] dp = new int[N]; for (int i = 0; i < N; i++) { cups[i] = Inte..