题目地址:https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH24
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.
给出D和M。D是A和B的除数,M是A和B的倍数。找到A和B。
输入:
Two positive integer D and M (D,M <= 100).
两个正整数D和M(D,M <= 100).
输出:
Two integers A and B.
两个整数A和B。
样例输入:
3 18
样例输出:
6 9