登录
首页 » Java » 1

1

于 2012-12-08 发布 文件大小:3KB
0 134
下载积分: 1 下载次数: 0

代码说明:

说明:  The famous Collatz sequence is generated by a method decribed as follows. Given a positive integer N, if it is odd, then replace it with 3*N+1. For even number N, use N/2 instead. You can get a sequence of number by this method. It is conjectured that the algorithm above will terminate at 1 for any integral input value. Despite the simplicity of the algorithm, it is unknown whether this conjecture is true. It has been verified, however, for all integers n such that 0 < n < 1,000,000 (and, in fact, for many more numbers than this.) (Input The first line contains a single integer T tells that there are T cases in the problem. Then for each case, there is an integers N. Output For each number N, output the sequence generated in a line, using coma as its separator. )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Volume 3 for sorting and searching, this is the book of a revised edition, it is...
    卷3为分拣和搜索,这是本书的第1个修订版,它是对计算机分拣和搜索的一流技术的最全面的研究,它扩展了卷1中数据结构的处理方法,将大小数据库以及内存和外部存储都包含在内。本书包括对计算机方法仔细检查的选择方案,和其效率的大量分析。本书该版的独特之处在于优化了的分拣,以及对通用散列法和排列法的新的理论论述。-Volume 3 for sorting and searching, this is the book of a revised edition, it is sorted on the computer and search the first-class technology of the most comprehensive study of its expansion Volume 1 data structure handling methods, the size of the database and external memory and storage are included. The book including computer methods carefully examined the options, and its efficiency lot of analysis. The book version of the unique features of the optimization is sorted, and right hash law and common law with the new theoretical expositions.
    2022-02-21 11:03:10下载
    积分:1
  • query库的例子
    query数据库的例子-example database query
    2022-09-03 18:30:03下载
    积分:1
  • nearest-point-two-dimensional-space
    本代码实现了算法导论中二维空间下的最近点对查找的算法。(Find the nearest point on the two-dimensional space under)
    2014-01-15 09:25:57下载
    积分:1
  • java和算法(第二版)
    Java数据结构和算法(第二版)-lafore著,教材中的范例程序,用JAVA语言,-Java data structures and algorithms (second edition)-lafore, and textbook examples of procedures, using JAVA language,
    2022-02-09 20:19:56下载
    积分:1
  • Numbersequence
    说明:  简单的数据结构算法 在POJ上的题目 利用C++实现(Simple data structure algorithm in POJ on the subject using C++ Implementation)
    2010-05-04 19:03:45下载
    积分:1
  • C language:hotel manage system
    C语言课程设计--旅店客房管理系统 数据结构:采用十字链表,实现录入、遍历、保存、载入、修改、插入、删除、各种查询及统计等功能。运行环境:Turboc2.0,文本界面-C language:hotel manage system
    2022-10-10 15:25:02下载
    积分:1
  • eXtremeDB与# 39;的示例代码,对你有用!!
    extremeDB s sample code,useful for you-extremeDB"s sample code, useful for you! !
    2022-11-07 18:50:04下载
    积分:1
  • 中八皇后的算法 中八皇后的算法中八皇后的算法...
    数据结构中八皇后的算法 数据结构中八皇后的算法数据结构中八皇后的算法-the eight strategic nerve points the eight strategic nerve points the eight strategic nerve points
    2022-04-17 11:29:21下载
    积分:1
  • 适合用来做K_Means 和K_NN的,一共150组,分成3个簇。
    适合用来做K_Means 和K_NN的数据,一共150组,分成3个簇。-K_Means and make suitable for K_NN data, a total of 150 groups, divided into three clusters.
    2022-01-28 02:09:09下载
    积分:1
  • 人力资源管理
    这是一个数据库项目,是为任何公司开发的人力资源系统。它维护员工的详细信息、员工的职责和公司的工资管理。
    2022-03-12 13:36:57下载
    积分:1
  • 696516资源总数
  • 106674会员总数
  • 5今日下载