描述
Given A and B. Find the smallest X that X is greater than 1 and A modulo X equals to B modulo X.
输入
Two positive integers A and B (A,B <= 10000).
输出
One integer X.
翻译:给出A和B,找到最小的X,X满足A模X等于B模X。
输入;
两个正整数A和B
输出;
一个数X
本文介绍了一个数学问题——给定两个正整数A和B,如何寻找最小的正整数X,使得A和B除以X的余数相等。文章详细解释了输入输出的要求。
描述
Given A and B. Find the smallest X that X is greater than 1 and A modulo X equals to B modulo X.
输入
Two positive integers A and B (A,B <= 10000).
输出
One integer X.
翻译:给出A和B,找到最小的X,X满足A模X等于B模X。
输入;
两个正整数A和B
输出;
一个数X
1799
5万+

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