WA in chefexq dec17 long

my code is failing for one test case .


[1]  [codeChef submission][2] help me to figure it out . 


  [1]: https://ideone.com/pq4PYd
  [2]: https://www.codechef.com/viewsolution/16571162

@anno The 2D array which you are using to store the counts might not be sufficient for the xor of two number less than 10^6. As XOR of two positive numbers less than 10^6 can be upto of 20 binary digits i.e. max 1048575 in decimal. So, try increasing the size of array to 1048576.

1 Like

@quamruzz44 Thanks mateā€¦