登录
首页 » Java » 1

1

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

  • 一个用来储存资料的库用C++builder 与jet 4.0编写
    一个用来储存资料的数据库用C++builder 与jet 4.0编写-used to store a database with information on the C jet builder with 4.0 preparation
    2022-03-31 17:45:30下载
    积分:1
  • sstring
    利用串来比较数据大小,代码中有两个串,通过串来比较大小( 10/5000 Use the string to compare the data size)
    2016-12-20 17:05:29下载
    积分:1
  • 嵌入式库软件 嵌入式库软件 嵌入式库软件
    嵌入式数据库软件 嵌入式数据库软件 嵌入式数据库软件-Embedded database software for embedded database software for embedded database software
    2023-07-16 06:05:03下载
    积分:1
  • A plan to merge sorting algorithm. In accordance with the
    一个合并排序算法。是按照《算法导论》书中的讲解来写的。-A plan to merge sorting algorithm. In accordance with the
    2022-06-21 23:35:43下载
    积分:1
  • Campus-guide-system
    该程序利用c语言在DOC环境之下实现了简单的湖南吉首大学校园导游系统,方便学生学习。(The program using c language environment in DOC under realized simple JiShou hunan university campus guide system, convenient student learning. )
    2012-05-22 16:04:08下载
    积分:1
  • 往年试题及答案
    数据结构往年试题及答案-Data structure in previous years questions and answers
    2022-02-10 09:42:14下载
    积分:1
  • 教程 C
    数据结构教程 C-data structure tutorial for c
    2022-07-22 08:21:53下载
    积分:1
  • Shortest Path Problem Description C
    最短路径问题C++描述-Shortest Path Problem Description C
    2022-01-27 14:10:42下载
    积分:1
  • PB polymorphic Application
    PB中多态的应用-PB polymorphic Application
    2023-01-03 06:25:04下载
    积分:1
  • 15大著名游戏之谜(15
    著名的15谜游戏(15-puzzle )的Tcl/Tk版本,现在它可以有 4x4, 5x5 或6x6 的格子,所以更加有趣,改变图片也更加容易。 -mystery of the famous 15 games (15-puzzle) Tcl/Tk editions, it could 4x4, 5x5 or 6x6 lattice, the more interesting and change the picture much easier.
    2022-06-11 13:50:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载