登录
首页 » Java » 1

1

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

  • 八皇后问题解法,包括DFS,BFS和INF三种解法
    八皇后问题解法,包括DFS,BFS和INF三种解法-8 Queen
    2022-03-15 23:33:05下载
    积分:1
  • 介绍了如何用VC存取库中的大对象的方法
    介绍了如何用VC存取数据库中的大对象的方法-on how to use the VC database access, a large object method
    2022-03-01 20:55:06下载
    积分:1
  • 关于二叉排序树胡程序课程设计代码
    关于二叉排序树胡数据结构程序课程设计代码-On the binary sort tree data structure procedures Hu curriculum design code
    2022-01-26 06:15:12下载
    积分:1
  • 本设计完成了要求的所有功能,可由系统建立一张图或者由用户自行建立一张图,并对该图进行关键路径的搜寻.用户界面友好,有用户使用说明,每一步操作都有说明与提示。程序...
    本设计完成了要求的所有功能,可由系统建立一张图或者由用户自行建立一张图,并对该图进行关键路径的搜寻.用户界面友好,有用户使用说明,每一步操作都有说明与提示。程序运行通过,有详细的解释说明。-the design completed all the required functions, from the establishment of a system or plan established by the users themselves a map, and this map critical path of the search. User friendly interface, users note, every step of the operation have notes and hints. Running through a detailed explanation.
    2022-04-28 23:49:48下载
    积分:1
  • vSQL server 的教务管理系统
    vSQL server 的教务管理系统-vSQL server management system for the Senate
    2022-02-01 19:38:45下载
    积分:1
  • Map-four-staining
    用不多于四种颜色为地图染色,使相邻的行政区不重色,是计算机科学中著名的“四染色”的典型应用,应用这个思想,是以回溯的算法对一幅给定的地图染色。是对数据结构中栈的应用。(With no more than four colors map staining the adjacent borough is not heavy color, typical applications of computer science "stain" the application of this idea, a backtracking algorithm on a given mapstaining. The application of the stack data structure.)
    2012-12-05 13:20:37下载
    积分:1
  • floy
    floyd算法 数据结构 求最短路径(floyd algorithm for data structure for shortest path)
    2007-11-13 23:39:25下载
    积分:1
  • use stack train compartments complete rearrangement of the algorithm, is a small...
    使用堆栈完成火车车厢重排的算法,是一个小的算法,主要在于学习堆栈的应用。-use stack train compartments complete rearrangement of the algorithm, is a small algorithm, mainly studying the application stack.
    2022-03-15 17:32:50下载
    积分:1
  • huffman-code
    该小程序为哈弗曼编码系统,带有一个小界面,主要执行的功能是对输入的数据进行编码,译码,构造并打印哈夫曼树。并且将输入的数据进行保存。(The applet is Felicity Huffman coding system, with a small interface, main function is performed on the input data encoding, decoding, construct and print a Huffman tree. Data entered and saved. )
    2012-05-06 11:05:42下载
    积分:1
  • DataStructureCLangue
    严蔚敏老师的数据结构题集答案(C语言版)(Yan Wei Min teachers collect data structure that answers (C language version))
    2007-03-13 20:30:39下载
    积分:1
  • 696518资源总数
  • 106182会员总数
  • 24今日下载