11726 2xn 타일링 java
-
boj)11726 - 2xn 타일링PS/boj 2020. 9. 16. 18:12
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; // # 2xn 타일링 public class boj_11726 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static int[] dp = new int[1001]; public static void main(String[] args) throws IOException { int n = Integer.parseInt(br.readLine()); dp[1] = 1; dp[2] = 2; for (int i = 3; i