#include
using namespace std;
int main(){
int f[20] = {0};
f[1] = 1; f[2] = 2;
for (int i = 3; i <= 20; i++){
f[i] = f[i - 1] + f[i - 2];
}
int n;
while (cin >> n){
cout << f[n] << endl;
}
return 0;
}
吃糖果
最新推荐文章于 2020-07-23 21:14:50 发布