목록2n타일링2 (1)
hara
BEAKJOON JAVA ALGORITHM #11727(2xn타일링2)
https://www.acmicpc.net/problem/11727 import java.util.Scanner; public class a11727 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] arr = new int[num+1]; arr[0] = arr[1] = 1; if(num == 1) { System.out.println(arr[num]); }else { for(int i=2; i
공부/알고리즘
2017. 8. 16. 18:11