-
用vc实现的遗传算法,有界面,易操作,从文件读取参数设置,结果输出到文件中,移植性强...
用vc实现的遗传算法,有界面,易操作,从文件读取参数设置,结果输出到文件中,移植性强-Vc implemented using genetic algorithms, there are interface, easy to operate, read from the file parameter settings, the resulting output to a file, transplantation and strong
- 2022-03-19 18:25:10下载
- 积分:1
-
二叉树的C语言实现
二叉树是每个结点最多有两个子树的有序树。二叉树常被用于实现二叉查找树和二叉堆。该代码对二叉树进行了C语言实现,实现平台为VC6.0。
- 2023-05-27 07:50:04下载
- 积分:1
-
正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是...
正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是2 个正整数,a≤b,找出a 和b之间约数个数最多的数x。
对于给定的2 个正整数a≤b,编程计算a 和b 之间约数个数最多的数。
数据输入
输入数据由文件名为input.txt的文本文件提供。文件的第1 行有2 个正整数a和b。
结果输出
程序运行结束时,若找到的a 和b 之间约数个数最多的数是x,将div(x)输出到文件output.txt中。
输入文件示例 输出文件示例
input.txt output.txt
1 36 9
-Positive integer x can be about a few of the positive integer x divisible. Positive integer x the approximate number recorded as the number of div (x). For example, 1,2,5,10 are about 10 positive integer number, and div (10) = 4. Set a and b are two positive integers, a ≤ b, to find a and b between about a few number of the largest number of x. For a given two positive integers a ≤ b, Programming calculated a and b between about a few number of the largest number. Data entry input data from the document text file named input.txt provide. File line 1 has two positive integers a and b. The results run the end of the output, if found between a and b of about a few number o
- 2023-04-13 05:20:03下载
- 积分:1
-
黄金分割法,抛物线插值法,单行替换法是机械优化设计中的三中重要方法。...
黄金分割法,抛物线插值法,单行替换法是机械优化设计中的三中重要方法。-Golden section method, parabolic interpolation method, one-way is to replace mechanical optimal design method of the three most important.
- 2022-01-25 23:40:14下载
- 积分:1
-
内有5个常用算法,多变形游戏,活动按排,批处理,装载问题,全排列,是用c语言实现的...
内有5个常用算法,多变形游戏,活动按排,批处理,装载问题,全排列,是用c语言实现的-within five commonly used algorithm, deformation games, activities by arrangement, batch loading, full array, is the C Language
- 2022-04-01 07:24:00下载
- 积分:1
-
基本种群规模改进与数值实验的PSO算法源程序,可自动保存实验数值,附有画图源代码。...
基本种群规模改进与数值实验的PSO算法源程序,可自动保存实验数值,附有画图源代码。-Basic population size and numerical experiments to improve the PSO algorithm source code can be automatically saves numerical experiment with drawing the source code.
- 2022-01-28 22:31:11下载
- 积分:1
-
基本排序算法比较与选择
基本排序算法比较与选择-Comparison of the basic sorting algorithm to choose
- 2022-02-20 06:57:28下载
- 积分:1
-
using a tree branch to paint the procedures written in vb
一个用分行来画树的程序,vb写的-using a tree branch to paint the procedures written in vb
- 2022-05-12 22:46:29下载
- 积分:1
-
购物车
java购物车项目源代码,比较简单,初级搜索和下载开源项目/源代码
- 2022-03-24 15:40:04下载
- 积分:1
-
tj大学研究生课程中有关最优控制的课件和例子
tj大学研究生课程中有关最优控制的课件和例子- optimal control
- 2022-06-30 11:26:22下载
- 积分:1