#616. 骨牌铺法
骨牌铺法
Background
Special for beginners, ^_^
Description
有1×n的一个长方形,用一个1×1、1×2和1×3的骨牌铺满方格。例如当n=3时为1×3的方格。此时用1×1、1×2和1×3的骨牌铺满方格,共有四种铺法。如下图:
Format
Input
Two integers x and y, satisfying .
Output
One integer, the sum of x and y.
Samples
3
4
Limitation
1s, 1024KiB for each test case.
统计
相关
在以下作业中: