목록데이터 엔지니어링 정복/Algorithm (159)
지구정복
-자바 package dp; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class Tiling2xn { private static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); private static int n;//가로길이 private static int[] d;//dp배열 public static void main(String[] args) throws Num..
-자바 package dp; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class BuyingCard1 { private static int n; private static int[] p; private static int[] d; public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n..
-자바 package dp; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; public class MakingCash1 { private static BufferedWriter bw = new BufferedWriter( new OutputStreamWriter(System.out)); private static int n; private static int m; private static int[] arr;/..
-자바 package dp; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class FloorConstruction1 { private static BufferedWriter bw = new BufferedWriter( new OutputStreamWriter(System.out)); private static int n;//바닥 가로 길이 private static int[] dp = new int[1001]; //DP배열 public static voi..