Type: Default 1000ms 256MiB

铺方格

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

2×n2 \times n 的一个长方形方格中,用一个 1×21 \times 2 的骨牌铺满方格,输入n ,输出铺放方案的总数.

例如n=3时,为 2×32 \times 3 方格,骨牌的铺放方案有三种,如下图:

image

输入格式

输入一个整数 nn (1n501 \le n \le 50)。

输出格式

输出一个整数表示答案。

1
1
2
2
3
3

"云滇计划"提高营--乐多赛

Not Attended
Status
Done
Rule
Ledo
Problem
11
Start at
2026-7-27 19:00
End at
2026-7-27 21:00
Duration
2 hour(s)
Host
Partic.
4