骨牌铺法
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
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.