描述
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
描述
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