摘要:
The lucky numbers were named by the Polish mathematician Ulam. It is generated using a "sieve" similar to the generation of prime numbers First, write 阅读全文
摘要:
0.爬楼梯: int n; ::scanf("%d",&n); int dp[n]; dp[0]=1; dp[1]=2; for (int i = 2; i < n; ++i) { dp[i]=dp[i-1]+dp[i-2]; } ::printf("%d",dp[n-1]); 1.最大子列和: i 阅读全文