Same Remainder(翻译)

阅读 71

2022-01-30

http://noi.openjudge.cn/english/13/

描述

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大于1且A且A模X等于B模X的最小X。

输入:

两个正整数A B(均小于等于10000).

输出:

一个整数X。

精彩评论(0)

0 0 举报