登录
首页 » Java » 1

1

于 2012-12-08 发布 文件大小:3KB
0 100
下载积分: 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 个回复

  • bsort
    数组排序中很经典的算法——冒泡排序法,FORTRAN90语言编成。(Sorting an array of classic algorithms- bubble sort method, FORTRAN90 language compiled.)
    2011-01-18 17:25:26下载
    积分:1
  • 管理学院 dudjet
    ubudjet est 联合国 logiciel 德管理学院杜预算人员 管理学院院 déponses par
    2022-01-30 16:30:19下载
    积分:1
  • Data-structure4
    关于数据结构这门学科的源程序,系列四。 (About data structure this discipline the source program.)
    2011-05-20 20:49:26下载
    积分:1
  • 霍夫曼编码前缀编码Huffman Coding
    霍夫曼编码前缀编码Huffman Coding-Huffman Codeing
    2022-04-27 08:54:46下载
    积分:1
  • 科学计算器项目
    应用背景这是一个科学计算器的项目,可以通过使用字符串和其他方法进行精确的工作。关键技术它是一种新技术,它的工作很好,我非常努力工作。
    2022-02-03 03:51:27下载
    积分:1
  • DSebook
    数据结构课件,清华大学版,与大家分享,感谢作者。(data structure courseware, Qinghua University edition share with you, thanks to the author.)
    2006-12-21 15:05:08下载
    积分:1
  • 。曲线拟合算法。通过曲线拟合的计算需求曲线…
    数据结构。曲线拟合算法。通过曲线拟合法求曲线近似方程-Data structure. Curve fitting algorithm. Demand curve by curve fitting approximation equation
    2022-03-24 14:10:45下载
    积分:1
  • example-program
    里面有50例经典算法,其中包括水仙花素,兔子的繁殖等古典问题的求解(There are 50 cases of classic algorithms, including daffodils prime, rabbit breeding classical problem solving)
    2013-02-03 11:14:12下载
    积分:1
  • 34695136
    c++实现固支三次样条曲线,算出曲线的系数,供其他绘图软件使用绘图,()
    2017-12-02 22:17:43下载
    积分:1
  • rs纠错算法,详细介绍了RS编码和解码的过程,以其对大家有所帮助...
    rs纠错算法,详细介绍了RS编码和解码的过程,以其对大家有所帮助-rs error correction algorithm, described in detail RS encoding and decoding process, and its help for all of us
    2022-03-19 00:26:21下载
    积分:1
  • 696518资源总数
  • 105584会员总数
  • 19今日下载