摘要: 题意:https://www.luogu.com.cn/problem/AT5799 题解:先把所有数减一。可以发现,把距离运算改成xor,就可以求出答案的奇偶性。 答案的奇偶性为$\left(\sum { {n 1}\choose {i 1}}\right) \bmod 2$ 如果是奇数,直接输出 阅读全文
posted @ 2020-03-23 12:42 hfhongzy 阅读(239) 评论(0) 推荐(0) 编辑