| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1282 人关注过本帖
标题:给点思路
取消只看楼主 加入收藏
ark1994218
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2013-5-12
结帖率:75%
收藏
 问题点数:0 回复次数:0 
给点思路
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
快速回复:给点思路
数据加载中...
 
   



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

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