Same Remainder
https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH13
1000ms 65536K
描述:
Given A and B. Find the smallest X that X is greater than 1 and A modulo X equals to B modulo X.
给出a和b,找出最小的x大于1且和a的模x等于和b的模x
输入:
Two positive integers A and B (A,B <= 10000).
两个正整数a和b
输出:
One integer X.
一个整数x
样例输入:
17 26
样例输出:
3