[BOJ 2133] 타일 채우기

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 128M

Problem type
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

3×N 크기의 벽을 2×1, 1×2 크기의 타일로 채우는 경우의 수를 구해보자.

입력 형식

첫째 줄에 N(1 ≤ N ≤ 30)이 주어진다.

출력 형식

첫째 줄에 경우의 수를 출력한다.

예제 입력

2

예제 출력

3

힌트

아래 그림은 3×12 벽을 타일로 채운 예시이다.


Comments

There are no comments at the moment.