会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
WangFeng
本博客用于记录学习算法的点点滴滴
博客园
首页
新随笔
联系
订阅
管理
11 2015 档案
hdu1134 Game of Connections 高精度 四则运算 模板
摘要:即卡特兰数。#include #include #include #include #include #include #include #include #include #include #define FOR(i,s,t) for(int i = (s) ; i = 0; i -= DLEN)...
阅读全文
posted @
2015-11-19 21:42
纸牌
阅读(142)
评论(0)
推荐(0)
hdu 5524 Subtrees 递推
摘要:二叉树如下: 1 / \ 2 3 / \ / \ 4 5 6 7/ \ /8 9 10从最后一个节点n开始沿着父节点往上爬,直到1(上图中就是:10->5->2->1)。重要的一点:如果当前节点有兄弟节点(例如:10没有兄弟,5的...
阅读全文
posted @
2015-11-03 20:29
纸牌
阅读(197)
评论(0)
推荐(0)
公告