C語言源碼: [cpp] #include<stdio.h> long long f[100]; int main() { int i,n; while(scanf("%d",&n)!=EOF) { f[1]=1; f[2]=2; for(i=3;i<=n;i++) f[i]=f[i-1]+f[i-2]; printf("%lld\n",f[n]); } }
下面以Microsoft Office&nb
[cpp] 01./* &nbs
[cpp] */ &nbs
源碼下載:http://download.csdn.net
1115:
Problem Description A ring