V. [NOIP 2012 提高组] 同余方程
[NOIP 2012 提高组] 同余方程
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.
P1082 [NOIP 2012 提高组] 同余方程
题目描述
求关于 的同余方程 的最小正整数解。
输入格式
一行,包含两个整数 ,用一个空格隔开。
输出格式
一个整数 ,即最小正整数解。输入数据保证一定有解。
输入输出样例 #1
输入 #1
3 10
输出 #1
7
说明/提示
数据规模与约定
- 对于 的数据,;
- 对于 的数据,;
- 对于 的数据,。
第四层次上9901练习
- Status
- Done
- Problem
- 54
- Open Since
- 2025-12-1 0:00
- Deadline
- 2025-12-8 23:59
- Extension
- 24 hour(s)