Https://hack.codingblocks.com/contests/c/452/562

https://hack.codingblocks.com/contests/c/452/562.
xor sum-1
can you please give me hint of this question
in my code https://ide.codingblocks.com/#/s/16734,
TLe error is coming in all test cases.

array size is too large to be declare in main make it globally or dynamically
This is the ur 1 mistake i didnt go through your logic is after that it is not woking then i will modify ur code and post

here n is given 10 raised to power 5 and my code is working in n square implementation.thats why TLe is coming in my code.i am not able to optimise my code for given n.
for given input, my answer is coming right.
.