diff --git a/code_study/Baekjoon/java/_12015.java b/code_study/Baekjoon/java/_12015.java new file mode 100644 index 0000000..45a6104 --- /dev/null +++ b/code_study/Baekjoon/java/_12015.java @@ -0,0 +1,37 @@ +import java.util.*; + +public class _12015 { + public static void main(String args[]) { + Scanner sc = new Scanner(System.in); + + int N = sc.nextInt(); + int[] A = new int[N]; + for(int i=0; i A[j] { + dp[i] = max(dp[i], dp[j] + 1) + } + } + } + + print(dp.max) +} + +solv() \ No newline at end of file