2015Hexagon and Rhombic Dominoes

2015   Hexagon and Rhombic Dominoes

题目描述

A regular hexagon with side length n is divided into 6n2 unit triangles.

Your task is to cover it with rhombic dominoes --- pieces composed of two unit triangles sharing a side.

Each domino must be placed in such a way, that it covers exactly two unit triangles. No triangle must be covered with more than one domino.

Count the number of ways to do so. For example there are two ways to cover a hexagon with side length~1, they are shown on the picture.

输入格式:

Eace re several test cases in the input. Each case contains n (1 <= n <= 7 ). There is an empty line between each case.

输出格式:

Output the number of ways to cover hexagon with rombic dominoes. There should be an empty line between each case.

输入样例 复制
1

2
输出样例 复制
2

20

说明

2
3
通过提交
时空限制5000ms/32mb
题目来源Andrew Stankevich's Contest #8
评测方式在线评测
题目类型
难        度