走楼梯
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Background
Special for beginners, ^_^
Description
楼梯有N级台阶,上楼可以一步上一阶,也可以一步上二阶。编一递归程序,计算共有多少种不同走法?
Format
Input
Two integers x and y, satisfying .
Output
One integer, the sum of x and y.
Samples
3
3
Limitation
1s, 1024KiB for each test case.