long long ann1(long long n);long long john1(long long n);long long sumAnn(long long n);long long sumJohn(long long n);long long* ann(long long n);long long* john(long long n);long long* ann(long long n){ int i; long long* a=(long long*)malloc(n*sizeof(long long)); for(i=0;i<n;i++) a[i]=ann1(i); return a;}long long* john(long long n){ int i; long long* j=(long long*)malloc(n*sizeof(long long)); for(i=0;i<n;i++) j[i]=john1(i); return j;}long long sumJohn(long long n){ int i; long long sum=0; for(i=0;i<n;i++) sum=sum+john1(i); return sum;}long long sumAnn(long long n){ int i; long long sum=0; for(i=0;i<n;i++) sum=sum+ann1(i); return sum;}long long john1(long long n){ long long j; if(n==0) { j=0; return j; } j=n-ann1(john1(n-1)); return j;}long long ann1(long long n){ long long a; if(n==0) { a=1; return a; } a=n-john1(ann1(n-1)); return a;}
- 1 回答
- 0 关注
- 1348 浏览
添加回答
举报
0/150
提交
取消