diff --git "a/khj20006/202503/14 BOJ P5 \355\201\254\353\246\254\354\212\244\353\247\210\354\212\244 \355\212\270\353\246\254 \352\276\270\353\257\270\352\270\260.md" "b/khj20006/202503/14 BOJ P5 \355\201\254\353\246\254\354\212\244\353\247\210\354\212\244 \355\212\270\353\246\254 \352\276\270\353\257\270\352\270\260.md" new file mode 100644 index 00000000..35ecafd3 --- /dev/null +++ "b/khj20006/202503/14 BOJ P5 \355\201\254\353\246\254\354\212\244\353\247\210\354\212\244 \355\212\270\353\246\254 \352\276\270\353\257\270\352\270\260.md" @@ -0,0 +1,74 @@ +```java + +import java.util.*; +import java.io.*; + + +class Main { + + // IO field + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st = new StringTokenizer(""); + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() throws Exception { + if(!st.hasMoreTokens()) nextLine(); + return Integer.parseInt(st.nextToken()); + } + static long nextLong() throws Exception { + if(!st.hasMoreTokens()) nextLine(); + return Long.parseLong(st.nextToken()); + } + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + + static int N, L; + static long[][] dp, sum; + static final long mod = 100030001L; + + public static void main(String[] args) throws Exception { + + ready(); + solve(); + + bwEnd(); + + } + + static void ready() throws Exception{ + + N = nextInt(); + L = nextInt(); + dp = new long[N+1][N+1]; + sum = new long[N+1][N+1]; + + } + + static void solve() throws Exception{ + + if(L > N) { + bw.write("0"); + return; + } + dp[0][0] = 1; + for(int i=0;i<=L;i++) sum[0][i] = 1; + for(int h=1;h<=L;h++) for(int n=1;n<=N;n++) { + + for(int k=0;k