万绿千红一片紫,RE声中吐血亡!
查看原帖
万绿千红一片紫,RE声中吐血亡!
1635974
a15667495696楼主2025/7/24 16:08

测试全对,提交全紫😭

#include <bits/stdc++.h>
using namespace std;
//fixed << setprecision()
int n, m;
long long a[1010] = {0, 1, 1};
int main(){
	ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	cin >> m >> n;
	for (int i = 3; i <= 1010; i++) a[i] = a[i - 1] + a[i - 2];
	cout << a[n - m + 1];
	return 0;
}

求条! 过了必关!

2025/7/24 16:08
加载中...