登录
首页 » Java » 1

1

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

  • 9168
    页面订单json解析易语言源码例程程序结合易语言数据结构支持库和高级表格支持库,调用易语言模块解析json结构分析淘宝订单页面。 (Page order JSON parsing easy language source routine procedures combined with easy language data structure to support the library and advanced forms support library, call the easy language module parsing JSON structure analysis of Taobao order page. )
    2017-01-09 11:10:54下载
    积分:1
  • chen-hui-lan(Data-Structure)
    数据结构 课件 附PPT 附实现源码数据结构 课件 附PPT 附实现源码(Class data structure attached PPT courseware data structure to achieve source components attached attached attached PPT achieve source)
    2013-10-05 16:21:56下载
    积分:1
  • 仓库管理
    仓储在企业的整个供应链中起着至关重要的作用,如果不能保证正确的进货和库存控制及发货,将会导致管理费用的增加,服务质量难以得到保证,从而影响企业的竞争力。传统简单、静态的仓储管理已无法保证企业各种资源的高效利用。如今的仓库作业和库存控制作业已十分复杂化多样化,仅靠人工记忆和手工录入,不但费时费力,而且容易出错,给企业带来巨大损失。
    2022-11-07 19:30:03下载
    积分:1
  • poj1411请多指教,多交流 0ms 交流算法
    poj1411请多指教,多交流 0ms 交流算法-Please advice poj1411, more exchanges 0ms exchange algorithm
    2022-02-10 17:21:51下载
    积分:1
  • 世上最全C源码,从基础语法到图书管理系统,应有尽有,你值得拥有
    第一部分  基础篇   001  第一个C程序 002  运行多个源文件 003  求整数之积 004  比较实数大小 005  字符的输出 006  显示变量所占字节数 007  自增/自减运算 008  数列求和 009  乘法口诀表 010  猜数字游戏 011  模拟ATM(自动柜员机)界面 012  用一维数组统计学生成绩 013  用二维数组实现矩阵转置 014  求解二维数组的最大/最小元素 015  利用数组求前n个质数 016  编制万年历 017  对数组元素排序 018  任意进制数的转换 019  判断回文数 020  求数组前n元素之和 021  求解钢材切割的最佳订单 022  通过指针比较整数大小 023  指向数组的指针 024  寻找指定元素的指针 025  寻找相同元素的指针 026  阿拉伯数字转换为罗马数字 027  字符替换 028  从键盘读入实数 029  字符行排版 030  字符排列 031  判断字符串是否回文 032  通讯录的输入输出 033  扑克牌的结构表示 034  用“结构”统计学生成绩 035  报数游戏 036  模拟社会关系 037
    2022-04-27 18:03:30下载
    积分:1
  • 一个基于WEB的考试系统,CS结构,ASP
    一个基于WEB的考试系统,CS结构,ASP-WEB-based examination system, CS structures, ASP
    2022-07-10 09:23:43下载
    积分:1
  • sew_nointmr_peer
    根据菲涅耳衍射原理编写的光学衍射模拟程序()
    2018-03-14 17:19:27下载
    积分:1
  • Josephus(data_struct)
    数据结构中基于约瑟夫环问题,用C++方式实现的。。。。。(Data structure based on Josephus problem with C++ a manner. . . . .)
    2013-11-17 11:30:24下载
    积分:1
  • 个人记事本,写日记、或记录各种密码 学习VB操作Access数据库可参考。...
    个人记事本,写日记、或记录各种密码 学习VB操作Access数据库可参考。-Personal notebook, diary, or record a variety of learning VB password to operate Access database can be found.
    2022-04-17 05:35:18下载
    积分:1
  • workbooks that you s
    作业练习题 你们-workbooks that you s
    2022-01-26 05:49:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载