B. 蒙德里安的梦想

    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.

Background

蒙德里安的梦想

Description

求把 N×MN \times M 的棋盘分割成若干个 1×21 \times 2 的长方形,有多少种方案。

例如当 N=2,M=4N = 2, M = 4 时,共有 55 种方案。当 N=2,M=3N = 2, M = 3 时,共有 33 种方案。

如下图所示:

2411_1.jpg

Format

Input

1122 个整数 NNMM

Output

答案,占 11 行。

Samples

4 11
51205

Limitation

2N,M112 \le N, M \le 11

普通困难比赛

Not Attended
Status
Done
Rule
Ledo
Problem
5
Start at
2023-5-13 10:19
End at
2025-8-23 18:19
Duration
20000 hour(s)
Host
Partic.
18