-
这是一个经典的伪随机数生成程序,特别方便和实用
这是一个经典的伪随机数生成程序,特别方便和实用-This is a classic pseudo-random number generator procedures, particularly convenient and practical
- 2023-02-19 20:35:03下载
- 积分:1
-
停车场管理系统
停车场是一个可停放 n 辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆车停放在车场的最北端)。若停车场内已经停满 n辆车,那么后来的车只能在门外的便道上等候。一旦有车开走,则排在便道上的第一辆车即可开入。当停车场内某辆车要离开时,在它之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入车场。每辆停放在车场的车在它离开停车场时必须按它停留的时间长短缴纳费用。
- 2022-06-17 19:13:57下载
- 积分: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
-
这是一个关于模拟退火c c++的算法程序,内有详细解释,希望对大家有所帮助...
这是一个关于模拟退火c c++的算法程序,内有详细解释,希望对大家有所帮助-This is a study on simulated annealing c c++ Algorithm procedure, which has a detailed explanation, and they hope to help everyone
- 2022-03-24 16:00:04下载
- 积分:1
-
学习算法分析时必须掌握的算法。01背包,经典无需多言。我以前的作业。...
学习算法分析时必须掌握的算法。01背包,经典无需多言。我以前的作业。-Learning algorithm analysis must master algorithm. 01 backpack, classic Needless to say. My previous job.
- 2023-03-07 10:10:04下载
- 积分:1
-
计算作图的源程序
计算作图的源程序-calculated mapping of the source
- 2022-06-11 22:14:30下载
- 积分:1
-
文化基因旅行商问题
Pablo Moscato 于1989 年首次提出memetic algorithm 的概念。Memetic一词由meme而来,其谐音译法很多,根据道金斯提出的本意,应理解为“文化基因”,因此将Memetic algorithm称为文化基因算法。文化基因算法用局部启发式搜索来模拟由大量专业知识支撑的变异过程,文化基因算法是一种基于种群的全局搜索和基于个体的局部启发式搜索的结合体。文化基因算法提出的是一种框架、是一个概念,在这个框架下,采用不同的搜索策略可以构成不同的文化基因算法,如全局搜索策略可以采用遗传算法、进化策略、进化规划等,局部搜索策略可以采用爬山搜索、模拟退火、
- 2022-05-22 14:16:07下载
- 积分:1
-
求解声学问题的边界元源程序,可以为使用边界元法求解位势问题和弹性力学问题提供启发...
求解声学问题的边界元源程序,可以为使用边界元法求解位势问题和弹性力学问题提供启发-problem solving acoustic BEM source, for the use of the boundary element method and the potential problems of elasticity to provide inspiration
- 2022-07-08 23:35:26下载
- 积分:1
-
enter mathematical formula calculation of the source code, we chin
通过输入数学公式进行数学计算的源代码,大家下巴-enter mathematical formula calculation of the source code, we chin
- 2022-05-14 07:17:09下载
- 积分:1
-
常用数学计算工具
常用数学计算工具-tool commonly used mathematical calculations
- 2022-01-22 17:15:44下载
- 积分:1