11727 2xn 타일링 2 java
-
boj)11727 - 2xn 타일링 2PS/boj 2020. 9. 16. 18:24
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; // # 2xn 타일링 2 public class boj_11727 { 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] = 3; for (int i = 3; i