From 7aaed5b341b23e213031f0bb1aa90835861903ab Mon Sep 17 00:00:00 2001 From: xingyou wu <3050128610@qq.com> Date: Wed, 9 Apr 2025 10:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- others/test4.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/others/test4.cpp b/others/test4.cpp index 5e10680..2fced78 100644 --- a/others/test4.cpp +++ b/others/test4.cpp @@ -1,14 +1,11 @@ +// 测试 #include using namespace std; -#define int long long -const int N = 1e5+7; -int dp[N]; +#define int long long +#define endl '\n' + signed main(){ - dp[1] = dp[2] = 1; - int n; cin >> n; - for(int i = 3; i <= n; i++){ - dp[i] = dp[i-1] + dp[i-2]; - } - cout << dp[n] << endl; + ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); + cout << "hello lanqiao" << endl; return 0; } \ No newline at end of file