80分,help
查看原帖
80分,help
1494870
qumo_04楼主2024/10/27 14:45
#include<cstdio>
using namespace std;
int main()
{
	int n;
	scanf("%d",&n);
	long long a=0,b=1,c;
	for (int i=2;i<=n;i++)
	{
		c = b;
		b = a+b;
		a = c;
	}
	printf("%.2lf",double(b));
	return 0;
}
2024/10/27 14:45
加载中...