Logo
(追記) (追記ここまで)

30162번 - Filling Shapes 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB21514613168.586%

문제

You have a given integer $n$. Find the number of ways to fill all 3ドル \times n$ tiles with the shape described in the picture below. Upon filling, no empty spaces are allowed. Shapes cannot overlap.

This picture describes when $n = 4$. The left one is the shape and the right one is 3ドル \times n$ tiles.

입력

The only line contains one integer $n$ (1ドル \le n \le 60$) --- the length.

출력

Print the number of ways to fill.

제한

예제 입력 1

4

예제 출력 1

4

예제 입력 2

1

예제 출력 2

0

노트

In the first example, there are 4ドル$ possible cases of filling.

In the second example, you cannot fill the shapes in 3ドル \times 1$ tiles.

출처

Contest > Codeforces > Codeforces Round 566 (Div. 2) A번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /