摘要: Fibonacci数列的递推公式为:Fn=Fn-1+Fn-2,其中F1=F2=1。 当n比较大时,Fn也非常大,现在我们想知道,Fn除以10007的余数是多少。 #include<iostream>using namespace std;int F(int x){if(x==1||x==2){ret 阅读全文
posted @ 2020-06-29 17:26 一季南凉 阅读(163) 评论(0) 推荐(0) 编辑