Translate
查看原帖
Translate
114914
一只书虫仔楼主2020/9/5 15:02
  • 给定 P,B,NP,B,N,求 LL 满足:

BLN(modP)B^L\equiv N\pmod P

  • 多解输出最小的,无解输出 no solution
  • 多组数据,数据组数不定,对于 100%100\% 的数据,2P<2312 \le P < 2^{31}2B<P2 \le B < P2N<P2 \le 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 一只书虫仔。
2020/9/5 15:02
加载中...