摘要:
( 1 )COGS:cogs.pro:8080 ( 2 )AGC:agc012.contest.atcoder.jp ( 3 )CS Acaemy:csacademy.com ( 4 )JoyOI:www.joyoi.cn ( 5 )ACM玲珑学院:http://www.ifrog.cc/acm 阅读全文
摘要:
```
常用素数:
P = 1004535809 ====> pr = 3
P = 998244353 =====> pr = 3
```
```
//(g 是mod(r*2^k+1)的原根) 素数 r k g
3 1 1 2
5 1 2 2
17 1 4 3
97 3 5 5
193 3 6 5
257 1 8 3
76... 阅读全文