[NOIP2012 提高组] 同余方程
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
求关于 的同余方程 的最小正整数解。
输入格式
一行,包含两个整数 ,用一个空格隔开。
输出格式
一个整数 ,即最小正整数解。输入数据保证一定有解。
3 10
7
提示
数据规模与约定
- 对于 的数据,;
- 对于 的数据,;
- 对于 的数据,。