OpenJudge - 24:Divisor and Multiple
描述
Given D and M. D is the divisor of both A and B, while M is the multiple of both A and B. Find A and B.
输入
Two positive integer D and M (D,M <= 100).
输出
Two integers A and B.
翻译:
给出D和M。D是A和B的除数,M是A和B的乘积。找出A和B
输入:
两个正整数D和M
输出:
两个数A和B。
这篇博客详细解读了OpenJudge上的题目24:如何根据给定的除数D和乘积M,确定同时被D整除且乘积为M的两个正整数A和B。涉及算法技巧和数学关系的推导。
158

被折叠的 条评论
为什么被折叠?



