超时了
查看原帖
超时了
1035926
shenyeting楼主2023/10/9 21:44
#include<bits/stdc++.h>
using namespace std;
int f(int x){
	if(x==0) return 1;
	if(x==1) return 1;
	return f(x-1)+f(x-2);
}
int main(){
	int n;
	cin>>n;
	cout<<f(n);
	return 0; 
}

《五个空超时》求助!!!

(本蒟蒻正在研究不用高精度数组能不能过,蒟蒻的想法总是很特别)

2023/10/9 21:44
加载中...