mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
13 lines
211 B
C++
13 lines
211 B
C++
#include<iostream>
|
|
int main()
|
|
{
|
|
using namespace std;
|
|
__int64 a[51]={0,1,2},n;
|
|
for(int i=3;i<=50;i++)
|
|
a[i]=a[i-1]+a[i-2];
|
|
while(cin>>n)
|
|
{
|
|
cout<<a[n]<<endl;
|
|
}
|
|
}
|