-
« 问题描述:
给定一个自然数n,由n开始可以依次产生半数集set(n)中的数如下。
(1) n∈set(n);
(2) 在n的左边加上一...
« 问题描述:
给定一个自然数n,由n开始可以依次产生半数集set(n)中的数如下。
(1) n∈set(n);
(2) 在n的左边加上一个自然数,但该自然数不能超过最近添加的数的一半;
(3) 按此规则进行处理,直到不能再添加自然数为止。
例如,set(6)={6,16,26,126,36,136}。半数集set(6)中有6 个元素。
注意半数集不是多重集。集合中已经有的元素不再添加到集合中。
« 编程任务:
对于给定的自然数n,编程计算半数集set(n)中的元素个数。
« 数据输入:
输入数据由文件名为input.txt的文本文件提供。
每个文件只有1 行,给出整数n。(0
- 2022-02-15 12:30:46下载
- 积分:1
-
非线性有限元程序KSP
Nonlinear finite element code KSP
- 2022-04-24 20:18:51下载
- 积分:1
-
2D 魔方源代码
新增功能:花式魔方,在菜单中FigureCube可以使魔方旋转成多种花式。共有45中花式,参考了www.Rubiker.cn中的花式魔方公式。每点击一次菜单,就会显示一种花式,45中花式循环显示。由于可能在整理时把花式公式弄错,所以可能出现并不美观的图案,这些会在可能存在的后续版本中更正。
1 > 尚未实现类似于2D版本的抄写功能。可以在2D中抄写,然后在本版本中打开。
- 2022-01-25 14:41:41下载
- 积分:1
-
Related to the complexity of network computing, there is c, vc two of the five p...
复杂网络计算相关,有c、vc两种环境的5个程序:1.筛选一列不重复记录2.集聚系数的计算(c语言,附有示例数据)3.含有节点信息的编号程序(vc,附有示例数据)4.独立性计算程序(附相关文献)5.网页过滤批处理程序(可处理无限文件)-Related to the complexity of network computing, there is c, vc two of the five procedures for the environment: 1. Screening of duplicate records is not a 2. Agglomeration coefficients (c language, with sample data) 3. Contain the number of nodes process information (vc, with sample data) 4. the independence of the calculation procedure (with the related literature) 5. page batch filtering process (which can handle unlimited file)
- 2022-01-25 23:17:46下载
- 积分:1
-
一本不错的博弈论基础的书,对策略和算法有较好的指导作用。...
一本不错的博弈论基础的书,对策略和算法有较好的指导作用。-A good book based on game theory, strategies and algorithms for a better guide.
- 2023-09-02 20:40:05下载
- 积分:1
-
这是用C++编的用链表求大数阶乘,
这是用C++编的用链表求大数阶乘,-This the C series for the use of large numbers factorial chain,
- 2022-03-07 12:50:11下载
- 积分:1
-
一个简单的文字识别软件,vc++做的,用office2003所带的组件,识别英文很好,汉字识别不出来...
一个简单的文字识别软件,vc++做的,用office2003所带的组件,识别英文很好,汉字识别不出来-A simple character recognition software, vc++ to do with the components brought office2003, identify good English, Chinese character recognition does not come out
- 2022-12-30 19:05:04下载
- 积分:1
-
用C语言编写的一个文本界面,可以实现十进制、二进制、八进制、十六进制的转化。...
用C语言编写的一个文本界面,可以实现十进制、二进制、八进制、十六进制的转化。-c code,can translate decimal,binary,octal and hex
- 2023-05-17 09:20:03下载
- 积分:1
-
This is a 22 on the VC++ Language classic books, hope everyone can help!
这是22本关于VC++语言的经典图书,希望对大家能够有所帮助!-This is a 22 on the VC++ Language classic books, hope everyone can help!
- 2022-11-30 13:45:10下载
- 积分:1
-
matlab与vc结合开发的好书,值得推荐哟,欢迎下载!
matlab与vc结合开发的好书,值得推荐哟,欢迎下载!-Matlab and vc linked to the development of the books recommend yo welcome to download!
- 2022-02-26 02:20:07下载
- 积分:1