목록가장긴감소하는부분수열 (1)
hara
BEAKJOON JAVA ALGORITHM #11722(가장 긴 감소하는 부분 수열)
https://www.acmicpc.net/problem/11722 import java.util.Scanner; public class a11722 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] arr = new int[num]; for(int i=num-1; i>=0; i--) { arr[i] = sc.nextInt(); } int[] d = new int[num]; for(int i=0; i
공부/알고리즘
2017. 8. 21. 14:04