import java.util.Arrays; import java.util.Scanner; /** * yukicoder no.27 * @author scache * */ public class PreparationBoard { public static void main(String[] args) { PreparationBoard p = new PreparationBoard(); } public PreparationBoard() { Scanner sc = new Scanner(System.in); int[] v =new int[4]; for(int i=0;i=10000000) continue; dp[i] = Math.min(dp[i], dp[Math.max(i-t, 0)] + 1); } } }