UVA 11000 - Bee UVA • Sep 1, 2020 Problem PDFSolution:#include int main() { long long int n,i,s[100000],f[100000]; while(scanf("%lld",&n)==1 && n>=0) { f[0]=0; f[1]=1; s[0]=1; for(i=2;i<=n+1;i++) f[i]=f[i-1]+f[i-2]; for(i=1;i<=n;i++) s[i]=s[i-1]+f[i+1]; printf("%lld %lld\n",s[n]-f[i],s[n]); } return 0; } https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11000/11000.cpp Tags UVA Competitive Programming Shipu Ahamed Recommended for you UVA UVA 913 - Joana and the Odd Numbers 4 years ago • 1 min read UVA UVA 871 - Counting Cells in a Blob 4 years ago • 3 min read UVA UVA 866 - Intersecting Line Segments 4 years ago • 3 min read