| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1279 人关注过本帖
标题:给点思路
只看楼主 加入收藏
ark1994218
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2013-5-12
结帖率:75%
收藏
 问题点数:0 回复次数:2 
给点思路
Favorite number
HanBo Favorite number is 1, So he will often use some ways to put some numbers to 1,and to this endless pride. He would only two ways will be:
(1) Put a number m divided by a prime number p . of course, this number must be divisible, i.e m = m / p
(2) The number m of one minus 1, i.e m = m-1 There are a whim, he wanted [a, b] interval all the numbers one by one into a 1, which is a huge boring works, so he wanted to know how much he was operating at least in order to achieve the purpose.
Input contains multiple sets of data (1000 data), the end of the input is indicated by 0 0. Each set of data begins with two integers: a, b (0 <a <= b <= 100000), meaning as the meaning of problems described.
Output Each data output line, at least operand numbers.
Sample Input 2 3 3 5 11 12 0 0
Sample Output 2 4 3
搜索更多相关主题的帖子: achieve numbers course wanted least 
2013-06-15 23:28
蚕头燕尾
Rank: 10Rank: 10Rank: 10
来 自:Gryffindo
等 级:贵宾
威 望:12
帖 子:734
专家分:1546
注 册:2013-3-24
收藏
得分:0 
楼主刷的是哪个大学的?


学习编程,为的是表达自己的思想,而不是被别人的思想所禁锢。要先明白自己想干嘛,而不要先问别人让你干嘛。               

                                                                                                                    Black Cat      Hello Tomorrow~
2013-06-16 00:25
汪汉
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-6-28
收藏
得分:0 
为什么没有热心的大神,太失望了
2013-06-28 08:15
快速回复:给点思路
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025703 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved