登录
首页 » 算法 » 正整数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 是...

于 2023-04-13 发布 文件大小:1.43 kB
0 194
下载积分: 2 下载次数: 1

代码说明:

正整数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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 层次分析法 、效益分配、幻方
    层次分析法 、效益分配、幻方-AHP, and the benefit distribution, Magic Squares
    2023-05-24 10:05:03下载
    积分:1
  • 实数序列的快速傅立叶变换,基本算法为分裂基算法,将实数序列数组的地址给函数即可...
    实数序列的快速傅立叶变换,基本算法为分裂基算法,将实数序列数组的地址给函数即可-actual sequence of the fast Fourier transform, the basic algorithm for splitting algorithm-based, real-sequence addresses to the array function can be
    2022-06-14 16:21:26下载
    积分:1
  • 二叉树的C语言实现
    二叉树是每个结点最多有两个子树的有序树。二叉树常被用于实现二叉查找树和二叉堆。该代码对二叉树进行了C语言实现,实现平台为VC6.0。
    2023-05-27 07:50:04下载
    积分:1
  • 基2算法的FFT程序,源码使用了按时间抽取的方式
    基2算法的FFT程序,源码使用了按时间抽取的方式-Radix-2 algorithm the FFT procedure, the use of a time source selection
    2022-06-18 17:41:12下载
    积分:1
  • One
    一维非稳态扩散问题通用程序(Basic语言)-One-dimensional non-steady-state GM-proliferation program (Basic language)
    2022-01-26 06:21:26下载
    积分:1
  • 串行口升级子程序支持1
    串行口升级子程序支持1-4口的中断控制  -serial port upgrade 1-4 subroutine I support the Interrupt Control
    2022-11-21 09:15:03下载
    积分:1
  • 离散分数傅里叶变换算法的matlab程序
    分数傅里叶变换的离散算法的matlab程序-Discrete fractional Fourier transform algorithm matlab program
    2022-01-26 05:38:52下载
    积分:1
  • 数学计算程序,共轭梯度算法,用C语言编写,用于优化问题的计算。...
    数学计算程序,共轭梯度算法,用C语言编写,用于优化问题的计算。-Mathematical procedure, conjugate gradient algorithm, using C language for optimization calculations.
    2023-01-22 08:15:03下载
    积分:1
  • 非定常解的程序
    Program for solving the unsteady one-dimensional convection/diffusion equation using FD method and various discretization schemes for convective and diffusive terms and for time integration.
    2023-04-05 21:05:03下载
    积分:1
  • 卡特尔十六种人格因素测验适用于十四岁以上青少年和成人,通过内外向、聪慧程度、责任心、开放性等十六种人格因素的剖析图,展示一个人的心理世界的全貌,并从心理健康、专
    卡特尔十六种人格因素测验适用于十四岁以上青少年和成人,通过内外向、聪慧程度、责任心、开放性等十六种人格因素的剖析图,展示一个人的心理世界的全貌,并从心理健康、专业成就、创造力、管理效能等方面综合应用反映出一个人的社会适应情况。对于鉴定、录用、选拔人才具有较好的参考价值。本科题的目的是编写出卡特尔人格测试系统,本系统适用于通过卡特尔16种人格因素测量以及团体施测后测试结果的数据统计分析显示,用户可以直接个人进行测试,也可将团体施测的数据输入计算机,计算机直接给出统计结果,并可以将数据入库。本课题研究的意义是免去用户利用手册进行统计的繁重劳动。 本课题完成的工作是卡特尔心理测试系统开发的整个过程中的个人测试模块和个人及团体测试结果显示。-The system applies to 16 kinds of personality factors cartel measurement and testing organizations test results after the statistical analysis of data shows that users can direct the individual test groups can also be testing the data entered into the computer, the computer gives direct results, and data storage can be. The significance of this research is removed from the user to use the heavy manual labor statistics. The topic is the work done cartel psychological test system development throughout the course of the individual test modules and individual and group test results indicate that
    2022-09-03 17:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载