摘要: 博弈论 与普通nim不同的是在任意一堆中至少取1,至多取 $ \lfloor \frac {a}{k} \rfloor $ 个 相比,我们这次就不能直接^石子数量,所以我们需要写一个SG函数,去评判一堆石子,然后再去异或 #include<bits/stdc++.h> #define int lon 阅读全文
posted @ 2021-10-08 15:20 Hehe_0 阅读(58) 评论(0) 推荐(0)
摘要: 不到90min的一场模拟赛 人挂掉了、 T1: [USACO18DEC]Convention II S 我是伞兵 #include<bits/stdc++.h> using namespace std; const int N=100005; int n,flag,ans; struct node 阅读全文
posted @ 2021-10-08 10:18 Hehe_0 阅读(135) 评论(0) 推荐(0)