摘要: 分析:a1 xor a2 xor a3 ... xor an !=0 则为必胜态a1 xor a2 xor a3 ... xor an ==0 则为必败态也就是说只要计算异或值,如果非零则A赢,否则B赢证:首先从xor为零的状态取走至少一颗石子,xor就一定会变成非零... 阅读全文
posted @ 2018-08-18 22:02 erge1998 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include#define mod 1000000009using namespace std;typedef long long ll;typedef long long LL;struct Mat{ LL mat[3][3]; Mat() ... 阅读全文
posted @ 2018-08-18 21:41 erge1998 阅读(148) 评论(0) 推荐(0) 编辑