From 0bb944a90c871a2cef7346ce49c701e06cd1abe2 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Sat, 21 Jun 2025 17:27:32 +0900 Subject: [PATCH] =?UTF-8?q?[20250621]=20BOJ=20/=20G1=20/=20=EA=B3=84?= =?UTF-8?q?=EB=8B=A8=20=EC=88=98=20/=20=EC=9D=B4=EA=B0=95=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ... \352\263\204\353\213\250 \354\210\230.md" | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 "lkhyun/202506/21 BOJ G1 \352\263\204\353\213\250 \354\210\230.md" diff --git "a/lkhyun/202506/21 BOJ G1 \352\263\204\353\213\250 \354\210\230.md" "b/lkhyun/202506/21 BOJ G1 \352\263\204\353\213\250 \354\210\230.md" new file mode 100644 index 00000000..d3194dc6 --- /dev/null +++ "b/lkhyun/202506/21 BOJ G1 \352\263\204\353\213\250 \354\210\230.md" @@ -0,0 +1,45 @@ +```java +import java.io.*; +import java.util.*; + +public class Main { + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st; + static int N; + static int[][][] dp; + static int MOD = 1000000000; + + public static void main(String[] args) throws IOException { + N = Integer.parseInt(br.readLine()); + //dp[자릿수][끝자리수][포함관계] + dp = new int[N+1][10][1024]; + for (int i = 1; i <= 9; i++) { + dp[1][i][1<0 && dp[i-1][j-1][k] > 0){ + dp[i][j][k | 1< 0){ + dp[i][j][k | 1<