-
« 问题描述:
给定一个自然数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
-
超级文本编辑器,允许用户同时打开多个文档,允许用户剪切、拷贝、粘贴,允许用户设置制表位、设置字体、打印字体等。...
超级文本编辑器,允许用户同时打开多个文档,允许用户剪切、拷贝、粘贴,允许用户设置制表位、设置字体、打印字体等。-Super text editor that allows users to open multiple documents at the same time, allowing users to cut, copy, paste, allow users to set up tab, and set the font, print fonts and so on.
- 2023-06-19 11:05:04下载
- 积分:1
-
人人五子棋
五子棋,人人对战,可以发送即时消息。
- 2022-01-22 03:58:02下载
- 积分:1
-
This a subprogram based on the platform of win2000, recommend!
这是一个在WIN2000操作平台下的子程序,各位喜欢电脑的朋友不妨看一看,我的电脑试了哦,很好的,-This a subprogram based on the platform of win2000, recommend!
- 2022-01-26 15:03:10下载
- 积分:1
-
一个很简单的windows程序 看了 是一种幸福
一个很简单的windows程序 看了 是一种幸福-a very simple procedure windows to be read a blessing
- 2022-03-12 21:35:40下载
- 积分:1
-
这是一个用c#的水晶报表视频教程 一,可以看看的
这是一个用c#的水晶报表视频教程 一,可以看看的-Crystal report control technical guide video, using C# language
- 2022-10-10 06:50:03下载
- 积分:1
-
i.MX27芯片WinCE 6
i.mx27 soc for wince 6.0
- 2022-07-15 08:34:56下载
- 积分:1
-
tframeviewer,thtmlviewer,和tframebrowser
TFrameViewer, ThtmlViewer, and TFrameBrowser
The HTML component set consists of the ThtmlViewer, TFrameViewer, and TFrameBrowser components. All three are HTML document display components:
ThtmlViewer The basic component. ThtmlViewer displays single (non-frame) documents. It also forms the basis for the other two components.
TFrameViewer Displays both Frame and single HTML documents. TFrameViewer is oriented more for local disk file use.
TFrameBrowser Also displays Frame and single HTML documents. However, TFrameBrower is oriented toward Internet style protocols and URL usage. Additional code and/or components are generally required to use TFrameBrowser.
If you know that your appication will not be using Frames, you can save a fair amount of code overhead by using ThtmlViewer rather than one of the Frame components. Many operations are also simpler using ThtmlViewer. -TFrameViewer, ThtmlViewer, and TFrameBrowser
The HTML component set consists of the ThtmlVie
- 2022-04-12 18:54:20下载
- 积分:1
-
VB classic example, achieved the establishment of databases to visit all of the...
VB数据库编程的经典范例,实现了从建立数据库到访问的所有步骤-VB classic example, achieved the establishment of databases to visit all of the steps
- 2022-03-15 15:48:30下载
- 积分:1
-
freq hopping spread spectrum
通过使用发射机和接收机都知道的伪随机序列,在多个频率信道之间快速切换载波来传输无线电信号的FHSS方法。
- 2022-02-05 01:00:51下载
- 积分:1