Divisor and Multiple
https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH24
1000ms 65536K
描述:
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
输出:
Two integers A and B.
两个整数a和b
样例输入:
3 18
样例输出:
6 9