-
[BAEKJOON] 2×n 타일링 2 - python코딩테스트 2024. 6. 12. 23:40
2×n 타일링 2
알고리즘 - dynamic programming

과정:
n = int(input()) arr = [1]*(n+1) #1로 초기화 for i in range(2,n+1): arr[i] = arr[i-1] + 2*arr[i-2] print(arr[n]%10007)'코딩테스트' 카테고리의 다른 글
[BAEKJOON] 쉬운 계단 수 - python (1) 2024.06.15 [BAEKJOON] 1, 2, 3 더하기 - python (1) 2024.06.14 [BAEKJOON] 2×n 타일링 - python (0) 2024.06.10 [BAEKJOON] 1로 만들기 - python (0) 2024.06.07 [프로그래머스] 진료 순서 정하기 - python (1) 2023.12.20