-
正整数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
-
一个魔方图的程序,希望大家给予支持!
一个魔方图的程序,希望大家给予支持!-a Rubik"s cube map procedures in the hope that we can give support!
- 2022-12-14 18:30:03下载
- 积分:1
-
简单的二叉树实现
简单的二叉树实现-achieve simple binary tree
- 2022-04-18 05:40:38下载
- 积分:1
-
用链表计算任意大小数的阶乘
用链表计算任意大小数的阶乘-calculated using the number of arbitrary size factorial
- 2022-04-08 19:11:01下载
- 积分:1
-
VC_chkshj.rar
VC_chkshj.rar
- 2022-04-09 16:47:57下载
- 积分:1
-
利用消元法中的列主元消元法来实现线性方程组的求解
利用消元法中的列主元消元法来实现线性方程组的求解-Using elimination method in the PCA included elimination method to achieve linear equations
- 2023-07-27 21:30:05下载
- 积分:1
-
本人还是初学者,看到贵网站上有丰富的高质量的程序,想下载来学习学习,来提高自身的编程水平,但也知道不能不劳而获,我也上传了一些我以前编的一些小程序,水平有限,但...
本人还是初学者,看到贵网站上有丰富的高质量的程序,想下载来学习学习,来提高自身的编程水平,但也知道不能不劳而获,我也上传了一些我以前编的一些小程序,水平有限,但希望能给大家带来些帮助,希望站长能批准我入会。-, I head to approve membership.
- 2022-02-10 09:03:10下载
- 积分:1
-
数图空域滤波器 灰度图有效 C# dll装配件
数图空域滤波器 灰度图有效 C# dll装配件-Figure airspace effective filter grayscale C# dll installed accessories
- 2023-01-11 06:30:03下载
- 积分:1
-
面波正演
这是一个面波正演示 matlab程序代码,适合初学者者使用,地球物理学中正演去噪的常用手段
- 2022-10-10 00:25:02下载
- 积分:1
-
固定边界条件下的三次样条插值matlab程序
固定边界条件下的三次样条插值matlab程序-fixed boundary condition;cubic spline
- 2022-09-24 05:55:02下载
- 积分:1