- 给定 P,B,N,求 L 满足:
BL≡N(modP)
- 多解输出最小的,无解输出
no solution
。
- 多组数据,数据组数不定,对于 100% 的数据,2≤P<231,2≤B<P,2≤N<P。
- Translated by 一只书虫仔。
- 给定 $P,B,N$,求 $L$ 满足:
$$B^L\equiv N\pmod P$$
- 多解输出最小的,无解输出 `no solution`。
- **多组数据**,数据组数不定,对于 $100\%$ 的数据,$2 \le P < 2^{31}$,$2 \le B < P$,$2 \le N<P$。
- Translated by 一只书虫仔。