【例67.1】 爬楼梯

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

树老师爬楼梯,他可以每次走11级或者22级,输入楼梯的级数,求不同的走法数。
例如:楼梯一共有33级,他可以每次都走一级,或者第一次走一级,第二次走两级,也可以第一次走两级,第二次走一级,一共33种方法。

输入格式

输入包含若干行,每行包含一个正整数NN,代表楼梯级数,1N301≤N≤30

输出格式

不同的走法数,每一行输入对应一行输出。

样例

5
8
10
8
34
89

202402240000

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
22
Start at
2024-2-24 13:00
End at
2024-2-24 15:30
Duration
2.5 hour(s)
Host
Partic.
9