sum of XOR of all subsequences of length<=m for a given array

前端 未结 0 407
星月不相逢
星月不相逢 2021-02-14 06:21

Example for m=2 and a={1,3,5,2}:

The bruteforce solution is:

1+3+5+2 + 1^3+1^5+1^2+3^5+3^2+5^2 = 34

Do you know

相关标签:
回答
  • 消灭零回复
提交回复
热议问题