题目描述
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main()
{
int n = 0;
cin >> n;
int a = 0, b = 1, c = 0;
for (int i = 0; i <= n - 1; i++)
{
cout << a << ‘ ‘;
c = a + b;
a = b;
b = c;
}
}
blablabla
样例
blablabla
算法1
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla
算法2
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla