版本比较
博弈论与 SG 函数
正文
增加 0 行删除 16 行
118 行未改动全部展开119120121122123124125126127128129130131132133134135136137138118 行未改动全部展开
通过打表可以发现,用 bitset 表示 $S_i$,我们可以发现,$S_i$ 即为 $i-1$ 的二进制展开
于是我们有了 $O(\log b)$ 计算 $SG(a,b)$ 的算法
## [P2594 [ZJOI2009] 染色游戏](https://www.luogu.com.cn/problem/P2594)
### 题意
## [P3179 [HAOI2015] 数组游戏](https://www.luogu.com.cn/problem/P3179)
### 题意
## [P3235 [HNOI2014] 江南乐](https://www.luogu.com.cn/problem/P3235)
### 题意
## [P6791 [SNOI2020] 取石子](https://www.luogu.com.cn/problem/P6791)_
### 题意