CF1182A.Filling Shapes
普及/提高-
通过率:0%
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
You have a given integer n . Find the number of ways to fill all 3×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×n tiles.
输入格式
The only line contains one integer n ( 1≤n≤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×1 tiles.