0
点赞
收藏
分享

微信扫一扫

Same Remainder(翻译)

小布_cvg 2022-01-30 阅读 71
c++

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 条评论