摘要: Anton has a positive integer n, however, it quite looks like a mess, so he wants to make it beautiful after k swaps of digits.Let the decimal represen 阅读全文
posted @ 2018-08-07 20:29 行远山 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Description 已知一个长度为 n 的整数数列 a[1],a[2],…,a[n] ,给定查询参数 l、r ,问在 [l,r] 区间内,有多少连续子 序列满足异或和等于 k 。 也就是说,对于所有的 x,y (l≤x≤y≤r),能够满足a[x]^a[x+1]^…^a[y]=k的x,y有多少组。 阅读全文
posted @ 2018-08-07 20:24 行远山 阅读(236) 评论(0) 推荐(0) 编辑