KMXOR - Editorial

i have further modified the code …
plz check …
CodeChef: Practical coding for everyone
i have got many WA …

plz help …
thnx in advance !!!

HERE is my unofficial editorial(I have described whole soln there)
my solution was almost same as this editorial soln…

try this test case and have a look at editorial(unofficial) if u r not missing anything(specially corner cases that I mentioned)…

I m getting right answers in all the test cases mentioned above.Please have a look.
1 1 1 1
1 1 1 1 1
1 2 1 1 1
2 1 1 1 1 1
3 1 1 1 1
2 1 1 1 1 1
1 2 12 1 1
8 7
8 7 1 1

your logic and output seems correct… dk what does codechef found wrong :frowning:

post queries about what you didn’t understood in editorials… and also you can have a look at my editorial for this question

#HERE

Your editorial is not showing.

Here is the new link
Previous link was not working because old discuss was replaced.

Thanks for good editorial