• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
若忆_star
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
2014年8月4日
hdu 1399 Starship Hakodate-maru (暴力搜索)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1399题目大意:找到满足i*i*i+j*(j+1)*(j+2)/6形式且小于等于n的最大值。 1 #include 2 #include 3 4 using namespace std; 5 6 in... 阅读全文
posted @ 2014-08-04 20:12 若忆_star 阅读(259) 评论(0) 推荐(0)
hdu 1711 Number Sequence
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1711题目大意:在母链中找到子链的位置,输出开始的位置。 1 #include 2 #include 3 using namespace std; 4 int lens,lenc,next[10000... 阅读全文
posted @ 2014-08-04 19:56 若忆_star 阅读(440) 评论(0) 推荐(1)
hdu 1686 Oulipo (kmp)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1686题目大意:寻找子链在母链中出现的次数。 1 #include 2 #include 3 #include 4 using namespace std; 5 int next[10010],su... 阅读全文
posted @ 2014-08-04 16:29 若忆_star 阅读(211) 评论(0) 推荐(0)
2014年8月3日
hdu 2199 Can you solve this equation?
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2199题目大意:找到满足8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y的x值,注意精确度问题。 1 #include 2 #include 3 #include 4 5 ... 阅读全文
posted @ 2014-08-03 20:47 若忆_star 阅读(336) 评论(0) 推荐(1)
hdu 3746 Cyclic Nacklace
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3746题目大意:补充珠子数使其成为手链,手链的规格是:比如这一组数据:abca,要想成为手链,必须满足abcabc,还要加两个,所以输出2。 1 #include 2 #include 3 #incl... 阅读全文
posted @ 2014-08-03 20:37 若忆_star 阅读(206) 评论(0) 推荐(0)
hdu 1358 Period
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1358题目大意:解释一下输出数据,第一组:2 2 表示的是第一个字母到第二字母,a出现了两次。3 3 表示的是第一个字母到第三个字母,a出现了3次。第二组:2 2表示的是第一个字母到第二个字母,a出现了两... 阅读全文
posted @ 2014-08-03 17:51 若忆_star 阅读(619) 评论(0) 推荐(0)
hdu 2817 A sequence of numbers(快速幂取余)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2817题目大意:给出三个数,来判断是等差还是等比数列,再输入一个n,来计算第n个数的值。 1 #include 2 #include 3 #include 4 #define m 200907 5 ... 阅读全文
posted @ 2014-08-03 13:01 若忆_star 阅读(448) 评论(0) 推荐(0)
hdu 2899 Strange fuction (二分)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.pihp?pid=2899题目大意:找出满足F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 2 #include 3 #include 4 using namespace std; 5... 阅读全文
posted @ 2014-08-03 11:52 若忆_star 阅读(226) 评论(0) 推荐(0)
hdu 2141 Can you find it?(二分查找)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2141题目大意:查找是否又满足条件的x值。这里简单介绍一个小算法,二分查找。 1 /* 2 3 x^2+6*x-7==y 4 输入y 求x 精确度为10^-5 5 0= 9 #includ... 阅读全文
posted @ 2014-08-03 11:51 若忆_star 阅读(651) 评论(0) 推荐(0)
2014年8月1日
hdu 1061 Rightmost Digit
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1061题目大意:n的n次方,输入个位数~这里介绍一个小的算法:快速幂取模首先,有n个数相乘,如s=a*a*a*a*a*a*a*a*a;假设b=a*a;则s=b*b*b*b*a;继续假设c=b*b;则s=c... 阅读全文
posted @ 2014-08-01 18:22 若忆_star 阅读(195) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3