delete pics to save space
This commit is contained in:
17
history_source/信息学奥赛一本通/1.4.1.13.cpp
Normal file
17
history_source/信息学奥赛一本通/1.4.1.13.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
long long a,b,c;
|
||||
a=b=c=1;
|
||||
int n;
|
||||
scanf("%d",&n);
|
||||
for(int i=3;i<=n;i++)
|
||||
{
|
||||
c=a+b;
|
||||
a=b;
|
||||
b=c;
|
||||
}
|
||||
printf("%ld\n",c);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user