登录
首页 » Java » 1

1

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

  • VC下ADO开发实践,整理总结的一片文章,可以按照其说明学习在VC环境下的ADO数据库应用程序开发...
    VC下ADO开发实践,整理总结的一片文章,可以按照其说明学习在VC环境下的ADO数据库应用程序开发-VC developed under the ADO practice, finishing a summary of the article, you can note in accordance with their learning in VC environment ADO database application development
    2022-02-05 07:58:12下载
    积分:1
  • are running a large hospital source, PB SQLSERVER design, procedures for the dev...
    某正在运行的大型医院源程序,PB+SQLSERVER设计,对程序开发和设计非常有参考和借鉴作用,赶快下栽吧-are running a large hospital source, PB SQLSERVER design, procedures for the development and design of information and very useful, it quickly crashed
    2023-07-27 16:45:19下载
    积分:1
  • 数据结构程序(顺序表 单链表 栈 队列 串 数组)
    自己写的一些简单的数据结构代码 包括了顺序表 单链表 栈 队列 串 数组     树 和 图还没写  写完再发  
    2022-09-07 17:30:03下载
    积分:1
  • datastruct
    说明:  包含图的遍历和线性链表两个内容,压缩文件里含有设计报告(Contains the graph traversal and linear chain of two elements, compressed file contains the design report)
    2008-10-11 21:57:20下载
    积分:1
  • 2
    说明:  用数据结构的遍历,对于小毛驴过河解决实际问题。(Traversing the data structure used for the small donkey across the river to solve practical problems.)
    2010-06-02 22:50:30下载
    积分:1
  • 001
    二叉树的中序遍历,先序遍历以及后序遍历的算法(Binary tree in preorder traversal, preorder traversal and postorder traversal algorithm)
    2012-06-03 23:26:44下载
    积分:1
  • connection/object pool. A program may require a IMAP connection po ol and LDAP c...
    Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP connection pool. One could easily implement a IMAP connection pool, then take the existing code and implement a LDAP connection pool. The program grows, and now there is a need for a pool of threads. So just take the IMAP connection pool and convert that to a pool of threads (Copy, paste, find, replace????). Need to make some changes to the pool implementation? Not a very easy task, since the code has been duplicated in many places. Re-inventing source code is not an intelligent approach in an object oriented environment which encourages re-usability. It seems to make more sense to implement a pool that can contain any arbitrary type rather than duplicating code. How does one do that? The answer is to use type parameterization, more commonly referred to as templates.-connection/object pool. A program may require a IMAP connection po ol and LDAP connection pool. One could easily im plemen
    2023-05-15 08:25:03下载
    积分:1
  • tree
    使用非递归的方法遍历二叉树,可以直接运行。( Non-recursive binary tree traversal.)
    2013-12-04 16:08:43下载
    积分:1
  • 泰森多边形
    在c++下,根据点数据画出泰森多边形,并且根据高程填色(In c++, according to the data to draw the Tyson polygon, and according to the elevation of coloring)
    2021-04-22 22:38:48下载
    积分:1
  • 股票自动交易软件
    实现中投软件股票的自动交易成交而不需要天天让人来看盘,这样很辛苦的,我炒股票的人事解放体力,不可多得的一份软件,有兴趣的朋友可以扩充,不过有关技术请注明出处,谢谢.新程触控一体机,教育智能平板适合炒股的大公司使用,可以交互式让炒家看股票软件的
    2023-07-06 18:05:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载