原文:
描述
Find the minimum positive number A, so that both A and (M minus A) are divisors of N.
输入
Two positive integers N (N <= 10000) and M (M <= 10000).
输出
Two integers A and (M-A).
翻译:
描述:
求最小正数 a,使得 a 和(m-a)都是 n 的约数。
输入:
两个正整数N和M(小于等与10000
输出:
两个整数A和(M-A)