摘要:
The Triangle ... 阅读全文
posted @ 2016-05-21 17:58
弃用博客
阅读(139)
评论(0)
推荐(0)
摘要:
#include using namespace std; int main() { cout inline const _Ty& (max)(const _Ty& _Left, const _Ty& _Right) { // ... 阅读全文
posted @ 2016-05-21 17:57
弃用博客
阅读(204)
评论(0)
推荐(0)
摘要:
超级台阶 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描述 有一楼梯共m级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第m级,共有多少走法? 注:规定从一级到一级有0种走法。 输入输入数据首先包含一个整数n(1using namespace std;co... 阅读全文
posted @ 2016-05-21 16:22
弃用博客
阅读(146)
评论(0)
推荐(0)
摘要:
#include using namespace std;const int N = 25;int F[25] = {1,1};int Fib(int n){ if(F[n]) return F[n]; return F[n]=Fib(n-1)+Fib(n-2); }int main... 阅读全文
posted @ 2016-05-21 15:21
弃用博客
阅读(147)
评论(0)
推荐(0)

浙公网安备 33010602011771号