The answer is coming correct for the sample test (already written in input section)…but the code is not accepted.
question is commented !
Please provide corrected code!
Doubt in code - WRONG ANSWER
can you share the question link?
@asaurabh_26
This question is on my college coding club’s portal…you won’t be able to access it
I have copied the question as it is in this link.
Sample input
3 1
0 5 1
Sample output
524292
In the above example, Clive chooses X to be 524288.
for even no of elements
i think ans should be xor or all elements only
hey @prerak_semwal they must have provide you with the editorial. You can read it. For TA support your doubt should be of course content only.