Indo Yoon
BlogTagsAbout
Published on
Sunday, August 16, 2020

백준-11727 : 2 x n 타일링 2

Authors
  • avatar
    Name
    Indo Yoon
    Twitter
Table of Contents
  • 풀이

문제

  • 백준-11727 : 2 x n 타일링 2
  • 문제링크

풀이

leng = int(input())

memo = [0]*(leng)
memo[0:2] = [1,3]

for i in range(2, leng):
    memo[i] = memo[i-1]+2*memo[i-2]

print(memo[leng-1]%10007)
Discuss on Twitter • View on GitHub

Tags

codingtestpython

Previous Article

백준-11726 : 2×n 타일링

Next Article

백준-2133 : 타일 채우기
← Back to the blog
mailMailgithubGitHublinkedinLinkedin
Indo Yoon
•
© 2025
•
Indo Yoon
Tailwind Nextjs Theme