#CQOI2018

P4462 [CQOI2018]异或序列

已知一个长度为n的整数数列a1,a2,...,ana_1,a_2,...,a_na1​,a2​,...,an​,给定查询参数l、r,问在al,al+1,...,ara_l,a_{l+1},...,a_ral​,al+1​,...,ar​区间内,有多少子序列满足异或和等于k。也就是说,对于所有的x,y(I≤x≤y≤r),...
代码星球 ·2020-12-27