• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






渣渣的学习之路

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2015年2月13日

HDU 1997 汉诺塔VII
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1997Problem Descriptionn个盘子的汉诺塔问题的最少移动次数是2^n-1,即在移动过程中会产生2^n个系列。由于发生错移产生的系列就增加了,这种错误是放错了柱子,并不会把大盘放到小盘上,... 阅读全文
posted @ 2015-02-13 21:45 xxxxy 阅读(338) 评论(0) 推荐(0)
 
HDU 1443 joseph
摘要: Problem DescriptionThe Joseph\\\\\\\'s problem is notoriously known. For those who are not familiar with the original problem: from among n people, nu... 阅读全文
posted @ 2015-02-13 09:23 xxxxy 阅读(152) 评论(0) 推荐(0)
 
HDU 1568 Fibonacci
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1568思路:用取对数的方法得到小数部分,再取前四位#include #include #include #include using namespace std;int main(){ int fi... 阅读全文
posted @ 2015-02-13 08:40 xxxxy 阅读(128) 评论(0) 推荐(0)