登录
首页 » Java » 1

1

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

  • Astar 精灵版本
    Astar 精灵版本 -Astar Wizard Wizard version version Astar
    2022-08-13 02:51:16下载
    积分:1
  • 这是一本介绍面向对象库的书,对学习库的朋友们很有帮助。
    这是一本介绍面向对象数据库的书,对学习数据库的朋友们很有帮助。-This is an introduction of object-oriented database of books, to learning database helpful friends.
    2022-11-03 17:05:04下载
    积分:1
  • 软件简介:(贸易管理系统Delphi源代码(有开发文档) 采用access+delphi设计 软件实现功能:供应商信息的输入,修改,查询; 顾客信息的输入,修改...
    软件简介:(贸易管理系统Delphi源代码(有开发文档) 采用access+delphi设计 软件实现功能:供应商信息的输入,修改,查询; 顾客信息的输入,修改,查询; 商品信息的输入,修改,查询; 进货信息的输入,修改,查询; 销售信息的输入,修改,查询。 输入:输入数据记录,并提交,可以保存入数据库; 输入信息包括 供货商: 供应商编号-software description : (Trade Management System Delphi source code (with the development of documentation) using access delphi design software functions : information provider input, modify and inquiries; Customer information input, modify and inquiries; Information on the importation of goods, modify, inquiries; NT information on the importation, modification, inquiries; sales information input, modify inquiries. input : input data records, and submitted it to keep the database; input suppliers including : provider number
    2022-02-25 15:43:42下载
    积分:1
  • 使用访问的抽奖系统
    抽奖系统使用 miicrosoft 接入,作为后端数据库这是好的项目:) 歉意乱码
    2022-02-11 14:09:12下载
    积分:1
  • sqstack
    和线性表类似,栈也有两种存储表示:顺序栈和链栈。   顺序存储结构简称为顺序栈。和顺序表类似,对顺序栈也需要事先为它分配一个可以容纳最多元素的存储空间。 (and linear scale similar Stack also have two storage : order Stack and Stack chain. Sequence storage structure referred to as the sequence of stack. Table and order similar to the order Stack also needs prior to allocate it can accommodate a maximum of elements of storage space.)
    2007-04-18 16:43:18下载
    积分:1
  • jhgrerfgjz
    一个简单的求矩阵求逆的c语言算法 一个简单的求矩阵求逆的c语言算法 一个简单的求矩阵求逆的c语言算法(a simple matrix inversion for the C language algorithms for a simple matrix inversion of the c language a simple algorithm The matrix inversion for the C language algorithms for a simple matrix inversion algorithm in C Language)
    2021-03-29 11:39:11下载
    积分:1
  • 与算法
    数据结构与算法-二叉树的用法。 二叉树的主要算法,声明等。-Data structures and algorithms- the usage of a binary tree. The main binary tree algorithm, statements.
    2022-02-13 02:28:24下载
    积分:1
  • 完成输入图,然后进行图的深度优先遍历
    完成输入图,然后进行图的深度优先遍历-Complete the input map, and then proceed to map the depth-first traversal
    2022-02-05 12:59:49下载
    积分:1
  • Normal-Algorithm
    在本文章里面,有各种举出算法的C语言实现 1、大数阶乘 2、大数乘法 3、任意进制转换 4、最大公约数 5、最小公倍数 6、快速傅里叶变换 7,字符串的替换,查找,截取 8、叉乘法求多边形的面积 9、快速,希尔,选择等各种排序 10、二叉树,链表,链栈 11、二分查找 12、求解线性方程组,也叫中国余数定理 13、求点到直线距离 14、Prim算法求最小生成器 15、判断点与直线的关系,俩条直线的关系 16、求排列组合数,俩矢量角度 ...... 等等基础算法的C语言代码实现(1, large factorial 2, a large number of multiplication 3, arbitrary binary conversion 4, the largest common divisor 5, the least common multiple 6, fast Fourier transform 7, string replacement, search, interception 8, fork multiplication method for polygon area 9, fast, Hill, choice and other sort 10, binary tree, linked list, chain stack 11, binary search 12, solving linear equations, also known as the Chinese remainder theorem 13, seeking point to a straight line distance 14, Prim algorithm for the minimum generator 15, determine the point and the relationship between the two lines of the relationship 16, the number of permutations and combinations, two vector angle ... And so on the basis of the C language code algorithm)
    2020-12-02 19:59:26下载
    积分:1
  • 多挖掘推特框架
    应用背景从推特挖掘社交数据框架。利用推特流API,允许听多流一次。 ; ; ; ; ; ; ; ;关键技术miltiprocessing和代理允许创建多个同步流没有达到的速率限制。框架处理线程安全的SQL存储& nbsp;
    2022-01-25 21:57:50下载
    积分:1
  • 696524资源总数
  • 103930会员总数
  • 47今日下载