From bd935df37430ef7586fb98f9fda92033dfb9fb1d Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Sat, 23 Aug 2025 20:13:34 +0900 Subject: [PATCH] 20250823 baekjoon --- code_study/Baekjoon/java/_11053.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 code_study/Baekjoon/java/_11053.java diff --git a/code_study/Baekjoon/java/_11053.java b/code_study/Baekjoon/java/_11053.java new file mode 100644 index 0000000..7801fe4 --- /dev/null +++ b/code_study/Baekjoon/java/_11053.java @@ -0,0 +1,23 @@ +import java.util.*; + +public class _11053 { + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + int N = sc.nextInt(); + int[] Arr = new int[N]; + for(int i=0; iArr[j]) dp[i] = Math.max(dp[i], dp[j] + 1); + } + } + + int maxLenth = Arrays.stream(dp).max().getAsInt(); + System.out.println(maxLenth); + } +}