#include <stdio.h>
#include <vector>
//爬楼梯若n为100,则最后一步只能是从99阶开始或从98阶开始
//所以f(100)=f(99)+f(98)
using namespace std;
int cilmb_stairs(int n)
{
vector<int>dp(n + 1);
if (n <= 0) return n;
dp[1] = 1; d...
English Article | Word Count | Duration | Accuracy | Speed | Backspace | Error | Slogan |
---|---|---|---|---|---|---|---|
《动态规划--爬楼梯》 | 364字 | 4.7分钟 | 100% | 71 CPM | 28 次 | 0 | 不及格,加强练习! |
Suggestion:
可能对按键不够熟悉,或者对输入法不够熟练所导致,不要急慢慢来,先打对把准确率提高,然后逐渐的加快速度,最后才能打准打快。
|
|||||||
Inspirational quotes: 凡是我受过他好处的人,我对于他便有了责任。 ——梁启超 | |||||||
What do you think of this article? Give it a rating and let it serve as a guiding light for others |