-
Requests must be of high quality on the site but not the source code must be req...
请求必须是网站上的高质量而不是源代码必须是网站上的高质量而不是源代码必须是网站上的高质量而不是源代码
- 2022-02-10 08:52:38下载
- 积分:1
-
« 问题描述:
给定一个自然数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
-
GIVEIO并口控制中的应用
giveio control the parellel port in application
- 2022-07-02 13:27:25下载
- 积分:1
-
这个是比较完整的实验报告。是关于约瑟夫环的,希望能得更多的加分。...
这个是比较完整的实验报告。是关于约瑟夫环的,希望能得更多的加分。-this was more complete experimental report. Josephus is on the hope of more of the points.
- 2022-07-28 00:55:18下载
- 积分:1
-
book on the case, I was in the learning process works, we upload to learn from
书上的例子,是本人在学习过程中的作品,上传给大家学习学习-book on the case, I was in the learning process works, we upload to learn from
- 2022-05-15 21:20:04下载
- 积分:1
-
将一个5*5的矩阵中最大的元素放在中心,四个角分别放四个最小的元素(顺序从左到右,从上到下顺序依次从小到大存放)...
将一个5*5的矩阵中最大的元素放在中心,四个角分别放四个最小的元素(顺序从左到右,从上到下顺序依次从小到大存放)-A 5* 5 matrix elements of the largest on the center, four corners, respectively, put the four smallest element (sequence from left to right, from top to bottom the order from small to large storage)
- 2023-07-23 16:10:03下载
- 积分:1
-
刚学编程,多多指导
刚学编程,多多指导-just learning programming, many guidance
- 2023-07-08 13:30:03下载
- 积分:1
-
介绍了如何在IDL环境下进行火星MOLA数据进行处理,是对前面小程序的进一步说明。...
介绍了如何在IDL环境下进行火星MOLA数据进行处理,是对前面小程序的进一步说明。-Describes how in the IDL environment MoLa Mars data treatment is in front of small procedures further explanation.
- 2022-07-15 22:58:49下载
- 积分:1
-
本程序实现pascal语言的语法分析,采用递归向下的分析方法。值得新手一看。...
本程序实现pascal语言的语法分析,采用递归向下的分析方法。值得新手一看。-the program pascal language syntax analysis, the use of recursive downward analysis method. Newcomers worth a look.
- 2023-04-27 08:25:03下载
- 积分:1
-
文件管理系统的使用程序 希望大家喜欢并且能用到 很不错的下吧...
文件管理系统的使用程序 希望大家喜欢并且能用到 很不错的下吧-document management system using the procedure hope you like and can use a very good are you
- 2022-06-20 00:54:31下载
- 积分:1