标签:
Description
Input
Output
Sample Input
Sample Output
#include<iostream> using namespace std; __int64 s[55]; void f() { s[0]=0; s[1]=1; s[2]=2; for(int i=3;i<53;i++) s[i]=s[i-1]+s[i-2]; } int main() { int n; f(); while(cin>>n)cout<<s[n]<<endl; //system("pause"); return 0; }
标签:
原文地址:http://www.cnblogs.com/farewell-farewell/p/5189536.html